runtime: stub {Lock,Unlock}OSThread. Makes 1.18 happier on windows.

This commit is contained in:
Dan Kegel
2022-03-26 11:20:43 -07:00
committed by Ron Evans
parent 1deee3ec5a
commit 3dc1e403ea
+11
View File
@@ -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() {
}