Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix mutex locking in _pkcs11h_threading_cond{Init,Wait} functions.
According to pthread_cond_wait manpage, the mutex has to be locked by the same thread that is going to call pthread_cond_wait afterwards. This was not true before this change and was causing test-slotevent to busy-loop on FreeBSD. Signed-off-by: Gleb Popov <[email protected]>
- Loading branch information