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.
acl_reset_condvar()
1 parent 9b6385b commit f66baabCopy full SHA for f66baab
lib/acl_threadsupport/src/acl_threadsupport.c
@@ -293,11 +293,6 @@ void acl_reset_condvar(struct acl_condvar_s *C) {
293
#else
294
{
295
int ret = 0;
296
- // Try to unlock then unlock. This is done just in case it is already
297
- // locked, because if the mutex is locked we can't destroy it. This may
298
- // happen in cases where an asssert causes an exit, etc.
299
- pthread_mutex_trylock(&(C->waiter_mutex));
300
- pthread_mutex_unlock(&(C->waiter_mutex));
301
ret |= pthread_mutex_destroy(&(C->waiter_mutex));
302
ret |= sem_destroy(&(C->signal_sem));
303
ret |= sem_destroy(&(C->passive_sem[0]));
0 commit comments