vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Thu Aug 18 17:18:16 2011 +0300| [a0447f783c92cfd0005eb160bae9fcdf967c801e] | committer: Rémi Denis-Courmont
Define VLC_STATIC_RWLOCK > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a0447f783c92cfd0005eb160bae9fcdf967c801e --- include/vlc_threads.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/vlc_threads.h b/include/vlc_threads.h index f7a91a8..dfe4359 100644 --- a/include/vlc_threads.h +++ b/include/vlc_threads.h @@ -111,6 +111,7 @@ typedef pthread_mutex_t vlc_mutex_t; typedef pthread_cond_t vlc_cond_t; #define VLC_STATIC_COND PTHREAD_COND_INITIALIZER typedef pthread_rwlock_t vlc_rwlock_t; +#define VLC_STATIC_RWLOCK PTHREAD_RWLOCK_INITIALIZER typedef pthread_key_t vlc_threadvar_t; typedef struct vlc_timer *vlc_timer_t; @@ -155,6 +156,8 @@ typedef struct unsigned long writers; DWORD writer; } vlc_rwlock_t; +#define VLC_STATIC_RWLOCK \ + { VLC_STATIC_MUTEX, VLC_STATIC_COND, VLC_STATIC_COND, 0, 0, 0 } typedef struct vlc_threadvar *vlc_threadvar_t; typedef struct vlc_timer *vlc_timer_t; _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
