API: Run dav1d_init under pthread_once
All threads resolved!
All threads resolved!
Compare changes
Files
3+ 19
− 0
@@ -125,4 +125,23 @@ void pthread_join(pthread_t thread, void** res)
This makes the function thread safe, to call, for example, from multiple transient dependecies or threads.
NB: Wasn't sure if it's OK to put a global pthread_once_t variable in lib.c, or if there's a more preferred place.
VideoLAN code repository instance