mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Prefix type and let to replace immutable
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
#import win32 "sys/windows.odin" when ODIN_OS == "windows";
|
||||
#import "atomics.odin";
|
||||
|
||||
const Semaphore = struct {
|
||||
type Semaphore struct {
|
||||
_handle: win32.Handle,
|
||||
}
|
||||
|
||||
const Mutex = struct {
|
||||
type Mutex struct {
|
||||
_semaphore: Semaphore,
|
||||
_counter: i32,
|
||||
_owner: i32,
|
||||
|
||||
Reference in New Issue
Block a user