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

Этот коммит содержится в:
Dan Kegel 2022-03-26 11:20:43 -07:00 коммит произвёл Ron Evans
родитель 1deee3ec5a
коммит 3dc1e403ea

Просмотреть файл

@ -74,3 +74,14 @@ func nanotime() int64 {
func os_sigpipe() { func os_sigpipe() {
runtimePanic("too many writes on closed pipe") 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() {
}