Skip to content

Commit

Permalink
runtime: stub {Lock,Unlock}OSThread. Makes 1.18 happier on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkegel-fastly authored and ardnew committed Jun 21, 2022
1 parent 46d87f2 commit 33d7110
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
}

0 comments on commit 33d7110

Please sign in to comment.