mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-24 08:27:53 +00:00
Fix sync and thread on *nix
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user