We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eec957a commit e2a2133Copy full SHA for e2a2133
testing/ostest/pthread_rwlock.c
@@ -88,6 +88,7 @@ static FAR void *race_cond_thread1(FAR void *data)
88
ASSERT(false);
89
}
90
91
+ sem_wait(rc->sem1);
92
status = pthread_rwlock_rdlock(rc->rw_lock);
93
if (status != 0)
94
{
@@ -197,6 +198,7 @@ static FAR void *race_cond_thread2(FAR void *data)
197
198
199
200
201
+ sem_post(rc->sem1);
202
if (g_race_cond_thread_pos++ != 3)
203
204
printf("pthread_rwlock: Thread order unexpected. Expected 3, got %d",
0 commit comments