summaryrefslogtreecommitdiffstats
path: root/osdep/win32
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-10-21 04:55:41 +0200
committerDudemanguy <random342@airmail.cc>2023-11-05 17:36:17 +0000
commit174df99ffa53f1091589eaa4fa0c16cdd55a9326 (patch)
tree3a60d45615f18beed98a9b08267c28ed7e05dd5f /osdep/win32
parent3a8b107f6216b38a151d5ca1e9d4f2727e3418f5 (diff)
downloadmpv-174df99ffa53f1091589eaa4fa0c16cdd55a9326.tar.bz2
mpv-174df99ffa53f1091589eaa4fa0c16cdd55a9326.tar.xz
ALL: use new mp_thread abstraction
Diffstat (limited to 'osdep/win32')
-rw-r--r--osdep/win32/include/semaphore.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/osdep/win32/include/semaphore.h b/osdep/win32/include/semaphore.h
index bc0ed2e374..eaa043254b 100644
--- a/osdep/win32/include/semaphore.h
+++ b/osdep/win32/include/semaphore.h
@@ -16,7 +16,7 @@
#ifndef MP_WRAP_SEMAPHORE_H_
#define MP_WRAP_SEMAPHORE_H_
-#include <pthread.h>
+#include "osdep/threads.h"
// See pthread.h for rationale.
#define sem_init m_sem_init
@@ -29,8 +29,8 @@
#define SEM_VALUE_MAX 100
typedef struct {
- pthread_mutex_t lock;
- pthread_cond_t wakeup;
+ mp_mutex lock;
+ mp_cond wakeup;
unsigned int value;
} sem_t;