[vlc-commits] src: darwin/thread: do not create own condattr
David Fuhrmann
git at videolan.org
Tue Jan 7 09:50:17 CET 2014
vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Mon Jan 6 17:21:33 2014 +0100| [9a144c024b7e8e3295a8f07ced5224bd7f7fac36] | committer: David Fuhrmann
src: darwin/thread: do not create own condattr
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9a144c024b7e8e3295a8f07ced5224bd7f7fac36
---
src/darwin/thread.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/darwin/thread.c b/src/darwin/thread.c
index 7f96ce6..cd1d694 100644
--- a/src/darwin/thread.c
+++ b/src/darwin/thread.c
@@ -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;
}
More information about the vlc-commits
mailing list