mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 19:43:44 +00:00
internal/task: remove coroutines
This commit is contained in:
+3
-3
@@ -15,13 +15,13 @@ package runtime
|
||||
// closed:
|
||||
// The channel is closed. Sends will panic, receives will get a zero value
|
||||
// plus optionally the indication that the channel is zero (with the
|
||||
// commao-ok value in the coroutine).
|
||||
// comma-ok value in the task).
|
||||
//
|
||||
// A send/recv transmission is completed by copying from the data element of the
|
||||
// sending coroutine to the data element of the receiving coroutine, and setting
|
||||
// sending task to the data element of the receiving task, and setting
|
||||
// the 'comma-ok' value to true.
|
||||
// A receive operation on a closed channel is completed by zeroing the data
|
||||
// element of the receiving coroutine and setting the 'comma-ok' value to false.
|
||||
// element of the receiving task and setting the 'comma-ok' value to false.
|
||||
|
||||
import (
|
||||
"internal/task"
|
||||
|
||||
@@ -6,13 +6,9 @@ package runtime
|
||||
// were added to the queue (first-in, first-out). It also contains a sleep queue
|
||||
// with sleeping goroutines in order of when they should be re-activated.
|
||||
//
|
||||
// The scheduler is used both for the coroutine based scheduler and for the task
|
||||
// based scheduler (see compiler/goroutine-lowering.go for a description). In
|
||||
// both cases, the 'task' type is used to represent one goroutine. In the case
|
||||
// of the task based scheduler, it literally is the goroutine itself: a pointer
|
||||
// to the bottom of the stack where some important fields are kept. In the case
|
||||
// of the coroutine-based scheduler, it is the coroutine pointer (a *i8 in
|
||||
// LLVM).
|
||||
// The scheduler is used both for the asyncify based scheduler and for the task
|
||||
// based scheduler. In both cases, the 'internal/task.Task' type is used to represent one
|
||||
// goroutine.
|
||||
|
||||
import (
|
||||
"internal/task"
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
// +build scheduler.coroutines
|
||||
|
||||
package runtime
|
||||
|
||||
// getSystemStackPointer returns the current stack pointer of the system stack.
|
||||
// This is always the current stack pointer.
|
||||
func getSystemStackPointer() uintptr {
|
||||
return getCurrentStackPointer()
|
||||
}
|
||||
Reference in New Issue
Block a user