mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 15:03:41 +00:00
sync: move Mutex to internal/task
The mutex implementation needs a different implementation once support for threading lands. This implementation just moves code to the internal/task package to centralize these algorithms.
This commit is contained in:
committed by
Ron Evans
parent
b15adf23f8
commit
5a1b885024
@@ -89,3 +89,6 @@ func (c *Cond) Wait() {
|
||||
// signal.
|
||||
task.Pause()
|
||||
}
|
||||
|
||||
//go:linkname scheduleTask runtime.scheduleTask
|
||||
func scheduleTask(*task.Task)
|
||||
|
||||
Reference in New Issue
Block a user