mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 10:37:46 +00:00
02c5c4213c
For the threads scheduler, it makes sense to have NumCPU available. For all other schedulers, the number of available CPUs is practically limited to one by the scheduler (even though the system might have more CPUs).
17 lines
308 B
Go
17 lines
308 B
Go
package runtime
|
|
|
|
// Stub for NumCgoCall, does not return the real value
|
|
func NumCgoCall() int {
|
|
return 0
|
|
}
|
|
|
|
// Stub for NumGoroutine, does not return the real value
|
|
func NumGoroutine() int {
|
|
return 1
|
|
}
|
|
|
|
// Stub for Breakpoint, does not do anything.
|
|
func Breakpoint() {
|
|
panic("Breakpoint not supported")
|
|
}
|