Yet another threading tool regression test scheduler sensitivity fix

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11934
This commit is contained in:
Bart Van Assche 2011-07-28 18:46:38 +00:00
parent 259006daec
commit 72138486c8

View File

@ -17,13 +17,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);
/* Unprotected relative to child */
x++;