mirror of
https://github.com/mmueller41/mxtasking.git
synced 2026-01-21 12:42:57 +01:00
Use std::malloc because Genode lacks std::aligned_alloc.
This commit is contained in:
@@ -33,7 +33,7 @@ public:
|
|||||||
static void *allocate_cache_line_aligned(const std::size_t size)
|
static void *allocate_cache_line_aligned(const std::size_t size)
|
||||||
{
|
{
|
||||||
/* TODO: Use component's heap, as std::aligned_alloc might not be thread-safe */
|
/* TODO: Use component's heap, as std::aligned_alloc might not be thread-safe */
|
||||||
return std::aligned_alloc(64U, alignment_helper::next_multiple(size, 64UL));
|
return std::malloc(alignment_helper::next_multiple(size, 64UL));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user