- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testHandleLeaks (0.23 sec)
-
src/cmd/cgo/internal/test/issue8517_windows.go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package cgotest //void testHandleLeaks(); import "C" import ( "syscall" "testing" "unsafe" ) var issue8517counter int var ( kernel32 = syscall.MustLoadDLL("kernel32.dll") getProcessHandleCount = kernel32.MustFindProc("GetProcessHandleCount")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 990 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue8517_windows.c
extern void testHandleLeaksCallback(); 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)