Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
protect against potential runtime race condition.
suspect there's potential for platform-specific racing on our singular bu_init_lock depending on how static initialization is ordered. this would explain several issues observed consistently on freebsd (possibly obscure issues on other platforms), but still testing. the solution is to not rely on static initialization of the mutex, instead resorting to runtime init on first use via pthread_once().
- Loading branch information