mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
Yet another threading tool regression test scheduler sensitivity fix
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11934
This commit is contained in:
parent
259006daec
commit
72138486c8
@ -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++;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user