fix pthreadtest contended mutex test case
This commit is contained in:
parent
41ba001828
commit
75d2c41f1f
@ -93,7 +93,7 @@ main(int argc, const char *argv[])
|
||||
// Mutex Contention Test
|
||||
printf("contended mutex lock test\n");
|
||||
pthread_mutex_init(&mtx, NULL);
|
||||
status = pthread_create(&thr, NULL, thread_simple, (void *)1);
|
||||
status = pthread_create(&thr, NULL, thread_lock, (void *)1);
|
||||
assert(status == 0);
|
||||
for (i = 0; i < 100; i++) {
|
||||
status = pthread_mutex_lock(&mtx);
|
||||
|
Loading…
Reference in New Issue
Block a user