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:
Ayke van Laethem
2025-01-13 16:55:02 +01:00
committed by Ron Evans
parent b15adf23f8
commit 5a1b885024
3 changed files with 47 additions and 45 deletions
+3
View File
@@ -89,3 +89,6 @@ func (c *Cond) Wait() {
// signal.
task.Pause()
}
//go:linkname scheduleTask runtime.scheduleTask
func scheduleTask(*task.Task)