mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 22:28:46 +00:00
Generic (grouped) declarations: var, let, const, type, import, include
This commit is contained in:
+15
-12
@@ -1,17 +1,20 @@
|
||||
#import win32 "sys/windows.odin" when ODIN_OS == "windows";
|
||||
#import "atomic.odin";
|
||||
import (
|
||||
win32 "sys/windows.odin" when ODIN_OS == "windows";
|
||||
"atomic.odin";
|
||||
)
|
||||
|
||||
type Semaphore struct {
|
||||
handle win32.HANDLE;
|
||||
}
|
||||
|
||||
type Mutex struct {
|
||||
semaphore Semaphore;
|
||||
counter i32;
|
||||
owner i32;
|
||||
recursion i32;
|
||||
}
|
||||
type (
|
||||
Semaphore struct {
|
||||
handle win32.HANDLE;
|
||||
}
|
||||
|
||||
Mutex struct {
|
||||
semaphore Semaphore;
|
||||
counter i32;
|
||||
owner i32;
|
||||
recursion i32;
|
||||
}
|
||||
)
|
||||
|
||||
proc current_thread_id() -> i32 {
|
||||
return win32.GetCurrentThreadId() as i32;
|
||||
|
||||
Reference in New Issue
Block a user