summaryrefslogtreecommitdiffstats
path: root/osdep/timer.c
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-10-22 02:43:15 +0200
committerDudemanguy <random342@airmail.cc>2023-11-05 17:36:17 +0000
commit56d35da180879ef86a15f89f1f870dcc1cb11e5f (patch)
tree4293ad8854541fc08fda8024e789144ae69ccca1 /osdep/timer.c
parent55ed50ba901e70adda09f1cf8c0de7cf80cabeb3 (diff)
downloadmpv-56d35da180879ef86a15f89f1f870dcc1cb11e5f.tar.bz2
mpv-56d35da180879ef86a15f89f1f870dcc1cb11e5f.tar.xz
mp_thread: add win32 implementation
Diffstat (limited to 'osdep/timer.c')
-rw-r--r--osdep/timer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/osdep/timer.c b/osdep/timer.c
index 8a58c4bc17..17921c1665 100644
--- a/osdep/timer.c
+++ b/osdep/timer.c
@@ -67,6 +67,8 @@ int64_t mp_time_ns_add(int64_t time_ns, double timeout_sec)
return time_ns + ti;
}
+#if !HAVE_WIN32_THREADS
+
struct timespec mp_time_ns_to_realtime(int64_t time_ns)
{
struct timespec ts = {0};
@@ -91,3 +93,5 @@ struct timespec mp_rel_time_to_timespec(double timeout_sec)
{
return mp_time_ns_to_realtime(mp_time_ns_add(mp_time_ns(), timeout_sec));
}
+
+#endif