Skip to content
Snippets Groups Projects
Commit 45305be5 authored by Alexander van Amesfoort's avatar Alexander van Amesfoort
Browse files

Task #8691: improve Barrier ifdef for OS X

parent 2a1f58ae
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,12 @@
#ifdef USE_THREADS
#include <pthread.h>
#if !_POSIX_BARRIERS // OS X
// Don't bother yet providing our own barrier impl. We hardly use it. Just warn.
#warning _POSIX_BARRIERS not defined on this system: code using LOFAR::Barrier will not compile
#else
#include <Common/LofarLogger.h>
#include <Common/SystemCallException.h>
......@@ -73,6 +79,7 @@ private:
} // namespace LOFAR
#endif
#endif
#endif
......@@ -27,6 +27,11 @@
#include <Common/Thread/Thread.h>
#include <Common/Thread/Barrier.h>
#if !_POSIX_BARRIERS // OS X
#warning _POSIX_BARRIERS not defined on this system: tBarrier test disarmed
#undef USE_THREADS
#endif
using namespace std;
using namespace LOFAR;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment