File tree 2 files changed +6
-2
lines changed
regression/cbmc-sequentialization/pthread_cond 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,9 @@ void initialise_condition(void)
24
24
}
25
25
26
26
// Wait for signal. Note that pthreads requires us to lock and unlock the mutex
27
- // around the call to `pthread_cond_wait`.
27
+ // around the call to `pthread_cond_wait`. Note also that if called
28
+ // pthread_cond_wait function waits then it will leave the mutex unlocked whilst
29
+ // it is waiting.
28
30
void wait (void )
29
31
{
30
32
const int lock_error = pthread_mutex_lock (& signal_mutex );
Original file line number Diff line number Diff line change @@ -23,7 +23,9 @@ void initialise_condition(void)
23
23
}
24
24
25
25
// Wait for signal. Note that pthreads requires us to lock and unlock the mutex
26
- // around the call to `pthread_cond_wait`.
26
+ // around the call to `pthread_cond_wait`. Note also that if called
27
+ // pthread_cond_wait function waits then it will leave the mutex unlocked whilst
28
+ // it is waiting.
27
29
void wait (void )
28
30
{
29
31
const int lock_error = pthread_mutex_lock (& signal_mutex );
You can’t perform that action at this time.
0 commit comments