diff options
| author | qmuntal <quimmuntal@gmail.com> | 2026-02-17 18:23:43 +0100 |
|---|---|---|
| committer | Quim Muntal <quimmuntal@gmail.com> | 2026-03-18 22:58:11 -0700 |
| commit | bf1c1b3bde50f33593cd0db8f19812ea957964f5 (patch) | |
| tree | 8e9b7ddccc889900dec98b2ebff7f03ef52afcc2 /src/internal/runtime/syscall | |
| parent | c1c0af1e16c4c932d4c05442d9717dac0dc08a79 (diff) | |
| download | go-bf1c1b3bde50f33593cd0db8f19812ea957964f5.tar.xz | |
runtime,runtime/cgo: do cgo thread initialization in Go on Windows
Windows doesn't require any special handling for cgo threads. They
can be created in the same way as in non-cgo code.
In fact, the code to create threads in runtime and in runtime/cgo is
basically the same, except that the latter does some retries on failure.
Cq-Include-Trybots: luci.golang.try:gotip-windows-amd64-longtest,gotip-windows-amd64-race,gotip-windows-arm64
Change-Id: I49d4de93d4d3b07a4c89e2bfb6b7302c6dfb9877
Reviewed-on: https://go-review.googlesource.com/c/go/+/746300
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/internal/runtime/syscall')
| -rw-r--r-- | src/internal/runtime/syscall/windows/defs_windows.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/internal/runtime/syscall/windows/defs_windows.go b/src/internal/runtime/syscall/windows/defs_windows.go index 6b1098098c..9861e764cb 100644 --- a/src/internal/runtime/syscall/windows/defs_windows.go +++ b/src/internal/runtime/syscall/windows/defs_windows.go @@ -60,6 +60,10 @@ const ( ) const ( + ERROR_ACCESS_DENIED = 5 +) + +const ( SEM_FAILCRITICALERRORS = 0x0001 SEM_NOGPFAULTERRORBOX = 0x0002 SEM_NOOPENFILEERRORBOX = 0x8000 |
