- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for CreateThread (0.23 sec)
-
src/runtime/testdata/testprogcgo/bigstack_windows.c
useStack(STACK_SIZE - (128<<10)); return 0; } void bigStack(callback *cb) { bigStackCallback = cb; HANDLE hThread = CreateThread(NULL, STACK_SIZE, threadEntry, NULL, STACK_SIZE_PARAM_IS_A_RESERVATION, NULL); if (hThread == NULL) { fprintf(stderr, "CreateThread failed\n"); exit(1); } WaitForSingleObject(hThread, INFINITE);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jul 02 15:18:26 UTC 2018 - 1.2K bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue8517_windows.c
DWORD WINAPI testHandleLeaksFunc(LPVOID lpThreadParameter) { int i; for(i = 0; i < 100; i++) { testHandleLeaksCallback(); } return 0; } void testHandleLeaks() { HANDLE h; h = CreateThread(NULL, 0, &testHandleLeaksFunc, 0, 0, NULL); WaitForSingleObject(h, INFINITE); CloseHandle(h);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 517 bytes - Viewed (0) -
src/runtime/testdata/testwinlibthrow/veh.c
RaiseException(42, 0, 0, 0); L9:} L10: L11:static DWORD WINAPI ThreadRaiser(void* Context) L12:{ L13: RaiseNoExcept(); L14: return 0; L15:} L16: L17:__declspec(dllexport) L18:void ThreadRaiseNoExcept(void) L19:{ L20: HANDLE thread = CreateThread(0, 0, ThreadRaiser, 0, 0, 0); L21: if (0 != thread) L22: { L23: WaitForSingleObject(thread, INFINITE); L24: CloseHandle(thread); L25: } L26:} ...
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 20 18:45:28 UTC 2022 - 470 bytes - Viewed (0) -
src/runtime/os_windows.go
//go:cgo_import_dynamic runtime._CreateEventA CreateEventA%4 "kernel32.dll" //go:cgo_import_dynamic runtime._CreateIoCompletionPort CreateIoCompletionPort%4 "kernel32.dll" //go:cgo_import_dynamic runtime._CreateThread CreateThread%6 "kernel32.dll" //go:cgo_import_dynamic runtime._CreateWaitableTimerA CreateWaitableTimerA%3 "kernel32.dll" //go:cgo_import_dynamic runtime._CreateWaitableTimerExW CreateWaitableTimerExW%4 "kernel32.dll"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 22:55:25 UTC 2024 - 41.5K bytes - Viewed (0) -
src/runtime/syscall_windows_test.go
} func TestCallbackInAnotherThread(t *testing.T) { d := GetDLL(t, "kernel32.dll") f := func(p uintptr) uintptr { return p } r, _, err := d.Proc("CreateThread").Call(0, 0, syscall.NewCallback(f), 123, 0, 0) if r == 0 { t.Fatalf("CreateThread failed: %v", err) } h := syscall.Handle(r) defer syscall.CloseHandle(h) switch s, err := syscall.WaitForSingleObject(h, syscall.INFINITE); s {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 31 16:31:35 UTC 2023 - 32.5K bytes - Viewed (0)