Commit 9a144c02 authored by David Fuhrmann's avatar David Fuhrmann

src: darwin/thread: do not create own condattr

parent 15a85cc6
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment