mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
runtime: stub {Lock,Unlock}OSThread. Makes 1.18 happier on windows.
This commit is contained in:
@@ -74,3 +74,14 @@ func nanotime() int64 {
|
||||
func os_sigpipe() {
|
||||
runtimePanic("too many writes on closed pipe")
|
||||
}
|
||||
|
||||
// LockOSThread wires the calling goroutine to its current operating system thread.
|
||||
// Stub for now
|
||||
// Called by go1.18 standard library on windows, see https://github.com/golang/go/issues/49320
|
||||
func LockOSThread() {
|
||||
}
|
||||
|
||||
// UnlockOSThread undoes an earlier call to LockOSThread.
|
||||
// Stub for now
|
||||
func UnlockOSThread() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user