Fix sync and thread on *nix

This commit is contained in:
gingerBill
2020-06-22 13:32:58 +01:00
parent b3c51a8b44
commit 0ab356aa4e
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ condition_signal :: proc(c: ^Condition) -> bool {
// Awaken all threads who are waiting on the condition
condition_broadcast :: proc(c: ^Condition) -> bool {
return pthread_cond_broadcast(&c.handle) == 0;
return unix.pthread_cond_broadcast(&c.handle) == 0;
}
// Wait for the condition to be signalled.