Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Reinecke
ducc
Commits
82659582
Commit
82659582
authored
Sep 03, 2020
by
Martin Reinecke
Browse files
workaround for yet another Apple quirk
parent
549631a3
Pipeline
#81517
passed with stages
in 17 minutes and 34 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/ducc0/infra/threading.cc
View file @
82659582
...
...
@@ -111,11 +111,12 @@ template <typename T> class concurrent_queue
class
thread_pool
{
private:
#if __cpp_lib_hardware_interference_size >= 201603
struct
alignas
(
std
::
hardware_destructive_interference_size
)
worker
#else
//FIXME: temporary ... OSX seems to set the macro, but not to have the variable
//#if __cpp_lib_hardware_interference_size >= 201603
// struct alignas(std::hardware_destructive_interference_size) worker
//#else
struct
alignas
(
64
)
worker
#endif
//
#endif
{
std
::
thread
thread
;
std
::
condition_variable
work_ready
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment