OSDN Git Service

Merge commit '2830bce47e2eb29c76202f19017031ddc1f95dd3'
authorHendrik Leppkes <h.leppkes@gmail.com>
Sat, 10 Oct 2015 07:45:44 +0000 (09:45 +0200)
committerHendrik Leppkes <h.leppkes@gmail.com>
Sat, 10 Oct 2015 07:45:44 +0000 (09:45 +0200)
* commit '2830bce47e2eb29c76202f19017031ddc1f95dd3':
  w32pthreads: Load dynamically loaded functions on demand

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

@@@ -241,12 -240,15 +248,15 @@@ static void (WINAPI *cond_signal)(pthre
  static BOOL (WINAPI *cond_wait)(pthread_cond_t *cond, pthread_mutex_t *mutex,
                                  DWORD milliseconds);
  
 -static av_unused void pthread_cond_init(pthread_cond_t *cond, const void *unused_attr)
 +static av_unused int pthread_cond_init(pthread_cond_t *cond, const void *unused_attr)
  {
      win32_cond_t *win32_cond = NULL;
+     w32thread_once_fallback(&w32thread_init_state, w32thread_init);
      if (cond_init) {
          cond_init(cond);
 -        return;
 +        return 0;
      }
  
      /* non native condition variables */