internal/task: implement atomic primitives for preemptive scheduling

This commit is contained in:
Ayke van Laethem
2024-10-27 10:26:23 +01:00
committed by Ron Evans
parent 789b5c6b78
commit 5b243f652c
8 changed files with 111 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
//go:build scheduler.threads
package task
// Atomics implementation for non-cooperative systems (multithreaded, etc).
// These atomic types use real atomic instructions.
import "sync/atomic"
type (
Uintptr = atomic.Uintptr
Uint32 = atomic.Uint32
Uint64 = atomic.Uint64
)