diff options
author | bart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2011-07-28 17:48:48 +0000 |
---|---|---|
committer | bart <bart@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2011-07-28 17:48:48 +0000 |
commit | 745bfbcadf9379175f82e06784b33ba4b005c963 (patch) | |
tree | 3b510cf73b8bbbbab257772727a3218d65e1026a /helgrind | |
parent | b040454fd9e756678c85e25f7818db8ec4beb75d (diff) |
Yet another regression test scheduling sensitivity fix
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11932 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'helgrind')
-rw-r--r-- | helgrind/tests/tc05_simple_race.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helgrind/tests/tc05_simple_race.c b/helgrind/tests/tc05_simple_race.c index 287c12c4..0d20a51b 100644 --- a/helgrind/tests/tc05_simple_race.c +++ b/helgrind/tests/tc05_simple_race.c @@ -22,13 +22,13 @@ void* child_fn ( void* arg ) int main ( void ) { + const struct timespec delay = { 0, 100 * 1000 * 1000 }; pthread_t child; - if (pthread_create(&child, NULL, child_fn, NULL)) { perror("pthread_create"); exit(1); } - + nanosleep(&delay, 0); /* "Thread 1" in the paper */ y = y + 1; pthread_mutex_lock( &mu ); |