API: Run dav1d_init under pthread_once
- Sep 26, 2018
-
-
Derek Buitenhuis authored
This makes the function thread safe, to call, for example, from multiple transient dependecies or threads. Signed-off-by:
Derek Buitenhuis <derek.buitenhuis@gmail.com>
afac3d3f -
Derek Buitenhuis authored
This function will be required to make dav1d_init threadsafe. Full erro checking support is included in this implementation, for completeness, even though dav1d_init cannot fail, and thus will ignore the return value of pthread_once. Signed-off-by:
Derek Buitenhuis <derek.buitenhuis@gmail.com>
a6853a94
-