Small changes to eliminate warnings, added Hello World example, bugfix in HashJoin benchmark.

This commit is contained in:
Jan Mühlig
2021-12-01 09:01:34 +01:00
parent 6b86efaf14
commit a58345de58
17 changed files with 212 additions and 106 deletions

View File

@@ -19,7 +19,7 @@ public:
* @param core_id Core to allocate memory for.
* @return Allocated memory.
*/
virtual void *allocate(std::uint16_t core_id) = 0;
[[nodiscard]] virtual void *allocate(std::uint16_t core_id) = 0;
/**
* Frees the memory at the given core.
@@ -36,12 +36,12 @@ template <std::size_t S> class SystemTaskAllocator final : public TaskAllocatorI
{
public:
constexpr SystemTaskAllocator() noexcept = default;
virtual ~SystemTaskAllocator() noexcept = default;
~SystemTaskAllocator() noexcept override = default;
/**
* @return Allocated memory using systems malloc (but aligned).
*/
void *allocate(const std::uint16_t /*core_id*/) override { return std::aligned_alloc(64U, S); }
[[nodiscard]] void *allocate(const std::uint16_t /*core_id*/) override { return std::aligned_alloc(64U, S); }
/**
* Frees the given memory using systems free.