X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_threads.h;h=3fefbaf2dfbbebffa7821c595a0b30b8123793d4;hb=c7f563eb4435e753d0d62345789b60433f003352;hp=dfe43599f7ceb74f217c54ea8dbbf8b24b875536;hpb=a0447f783c92cfd0005eb160bae9fcdf967c801e;p=vlc diff --git a/include/vlc_threads.h b/include/vlc_threads.h index dfe43599f7..3fefbaf2df 100644 --- a/include/vlc_threads.h +++ b/include/vlc_threads.h @@ -144,20 +144,20 @@ typedef struct HANDLE handle; unsigned clock; } vlc_cond_t; +#define VLC_STATIC_COND { 0, 0 } typedef HANDLE vlc_sem_t; typedef struct { vlc_mutex_t mutex; - vlc_cond_t read_wait; - vlc_cond_t write_wait; + vlc_cond_t wait; unsigned long readers; unsigned long writers; DWORD writer; } vlc_rwlock_t; #define VLC_STATIC_RWLOCK \ - { VLC_STATIC_MUTEX, VLC_STATIC_COND, VLC_STATIC_COND, 0, 0, 0 } + { VLC_STATIC_MUTEX, VLC_STATIC_COND, 0, 0, 0 } typedef struct vlc_threadvar *vlc_threadvar_t; typedef struct vlc_timer *vlc_timer_t;