mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 22:43:40 +00:00
internal/task: implement atomic primitives for preemptive scheduling
This commit is contained in:
committed by
Ron Evans
parent
789b5c6b78
commit
5b243f652c
@@ -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
|
||||
)
|
||||
Reference in New Issue
Block a user