aboutsummaryrefslogtreecommitdiff
path: root/src/threading.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-08-26 17:57:29 +0100
committergingerBill <bill@gingerbill.org>2021-08-26 17:57:29 +0100
commitaba14c43ac3faa4d4f323ac5da9f09fcb77c31c0 (patch)
treed52232afe5bb5c8f361e5f2ca33011a22450d3e5 /src/threading.cpp
parent25c3fd48f02bb92973583ae161dd4432805d85f3 (diff)
Fix typo
Diffstat (limited to 'src/threading.cpp')
-rw-r--r--src/threading.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/threading.cpp b/src/threading.cpp
index 6a91038bd..fd6ebf9ad 100644
--- a/src/threading.cpp
+++ b/src/threading.cpp
@@ -225,8 +225,8 @@ void yield_process(void);
}
void condition_wait_with_timeout(Condition *c, BlockingMutex *m, u32 timeout_in_ms) {
struct timespec abstime = {};
- timespec.tv_sec = timeout_in_ms/1000;
- timespec.tv_nsec = cast(long)(timeout_in_ms%1000)*1e6;
+ abstime.tv_sec = timeout_in_ms/1000;
+ abstime.tv_nsec = cast(long)(timeout_in_ms%1000)*1e6;
pthread_cond_timedwait(&c->pthread_cond, &m->pthread_mutex, &abstime);
}