mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
Yet another regression test scheduling sensitivity fix
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11932
This commit is contained in:
parent
19cbbaf2ae
commit
d0318b86e1
@ -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 );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user