]> git.sesse.net Git - vlc/commitdiff
src: darwin/thread: do not create own condattr
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Mon, 6 Jan 2014 16:21:33 +0000 (17:21 +0100)
committerDavid Fuhrmann <david.fuhrmann@googlemail.com>
Tue, 7 Jan 2014 08:49:56 +0000 (09:49 +0100)
src/darwin/thread.c

index 7f96ce6d99c445cc8913fb4448e40070cdf4bc9e..cd1d694f667bdc320e40942dc28d553b3caabf1f 100644 (file)
@@ -232,14 +232,8 @@ enum
 /* Initialize a condition variable. */
 void vlc_cond_init (vlc_cond_t *p_condvar)
 {
-    pthread_condattr_t attr;
-
-    if (unlikely(pthread_condattr_init (&attr)))
-        abort ();
-
-    if (unlikely(pthread_cond_init (&p_condvar->cond, &attr)))
+    if (unlikely(pthread_cond_init (&p_condvar->cond, NULL)))
         abort ();
-    pthread_condattr_destroy (&attr);
     p_condvar->clock = VLC_CLOCK_MONOTONIC;
 }