Merge commit 'c53e796f8b69799b7ad6d28fbab981d37edf1bc9'
authorHendrik Leppkes <h.leppkes@gmail.com>
Wed, 14 Oct 2015 21:02:35 +0000 (23:02 +0200)
committerHendrik Leppkes <h.leppkes@gmail.com>
Wed, 14 Oct 2015 21:02:35 +0000 (23:02 +0200)
* commit 'c53e796f8b69799b7ad6d28fbab981d37edf1bc9':
  thread: Provide no-op variants for pthread_once

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
1  2 
libavutil/thread.h

  #define ff_mutex_unlock  pthread_mutex_unlock
  #define ff_mutex_destroy pthread_mutex_destroy
  
+ #define AVOnce pthread_once_t
+ #define AV_ONCE_INIT PTHREAD_ONCE_INIT
+ #define ff_thread_once(control, routine) pthread_once(control, routine)
  #else
  
 +#define USE_ATOMICS 1
 +
  #define AVMutex char
  
  #define ff_mutex_init(mutex, attr) (0)