Yet another regression test scheduling sensitivity fix

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11932
This commit is contained in:
Bart Van Assche 2011-07-28 17:48:48 +00:00
parent 19cbbaf2ae
commit d0318b86e1

View File

@ -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 );