mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
Should now really compile on Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11100
This commit is contained in:
parent
c58006ac4d
commit
fda89041dc
@ -82,7 +82,14 @@ static int barrier_wait(barrier_t* b)
|
||||
else
|
||||
{
|
||||
while (b->barrier_count == barrier_count)
|
||||
{
|
||||
#ifdef __APPLE__
|
||||
/* Darwin doesn't have an implementation of pthread_yield(). */
|
||||
usleep(100 * 1000);
|
||||
#else
|
||||
pthread_yield();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
ANNOTATE_BARRIER_WAIT_AFTER(b);
|
||||
return res;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user