Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
45305be5
Commit
45305be5
authored
8 years ago
by
Alexander van Amesfoort
Browse files
Options
Downloads
Patches
Plain Diff
Task #8691: improve Barrier ifdef for OS X
parent
2a1f58ae
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
LCS/Common/include/Common/Thread/Barrier.h
+7
-0
7 additions, 0 deletions
LCS/Common/include/Common/Thread/Barrier.h
LCS/Common/test/tBarrier.cc
+5
-0
5 additions, 0 deletions
LCS/Common/test/tBarrier.cc
with
12 additions
and
0 deletions
LCS/Common/include/Common/Thread/Barrier.h
+
7
−
0
View file @
45305be5
...
...
@@ -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
This diff is collapsed.
Click to expand it.
LCS/Common/test/tBarrier.cc
+
5
−
0
View file @
45305be5
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment