]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo: use CreateThread instead of _beginthread
authorqmuntal <quimmuntal@gmail.com>
Mon, 24 Feb 2025 14:37:41 +0000 (15:37 +0100)
committerQuim Muntal <quimmuntal@gmail.com>
Tue, 25 Feb 2025 20:01:21 +0000 (12:01 -0800)
commit00e793cfe36de845501ea302645094149ed63e91
treebc0ad483ee26574997a2ecad728ce3e7b5de11d7
parentc5ff26a7a0ba7a8aa6320d70d0933f117d882dde
runtime/cgo: use CreateThread instead of _beginthread

_beginthread is intended to be used together with the C runtime.
The cgo runtime doesn't use it, so better use CreateThread directly,
which is the Windows API for creating threads.

Cq-Include-Trybots: luci.golang.try:gotip-windows-amd64-longtest,gotip-windows-arm64
Change-Id: Ic6cf75f69f62a3babf5e74155da1aac70961886c
Reviewed-on: https://go-review.googlesource.com/c/go/+/651995
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/cgo/gcc_libinit_windows.c
src/runtime/cgo/gcc_windows_386.c
src/runtime/cgo/gcc_windows_amd64.c
src/runtime/cgo/gcc_windows_arm64.c
src/runtime/cgo/libcgo_windows.h