Skip to content

Commit 3dc1e40

Browse files
dkegel-fastlydeadprogram
authored andcommitted
runtime: stub {Lock,Unlock}OSThread. Makes 1.18 happier on windows.
1 parent 1deee3e commit 3dc1e40

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/runtime/runtime.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,14 @@ func nanotime() int64 {
7474
func os_sigpipe() {
7575
runtimePanic("too many writes on closed pipe")
7676
}
77+
78+
// LockOSThread wires the calling goroutine to its current operating system thread.
79+
// Stub for now
80+
// Called by go1.18 standard library on windows, see https://github.com/golang/go/issues/49320
81+
func LockOSThread() {
82+
}
83+
84+
// UnlockOSThread undoes an earlier call to LockOSThread.
85+
// Stub for now
86+
func UnlockOSThread() {
87+
}

0 commit comments

Comments
 (0)