Add sync.Barrier; Add sync.Blocking_Mutex for unix

This commit is contained in:
gingerBill
2020-06-27 11:23:37 +01:00
parent 2b18f43b65
commit 9fdebebd28
4 changed files with 212 additions and 63 deletions
+3
View File
@@ -6,6 +6,9 @@ cpu_relax :: inline proc() {
intrinsics.cpu_relax();
}
Condition_Mutex_Ptr :: union{^Mutex, ^Blocking_Mutex};
Ticket_Mutex :: struct {
ticket: u64,
serving: u64,