MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / cutWaitForThreads

Function cutWaitForThreads

Common/multithreading.cpp:49–55  ·  view source on GitHub ↗

Wait for multiple threads

Source from the content-addressed store, hash-verified

47
48// Wait for multiple threads
49void cutWaitForThreads(const CUTThread *threads, int num) {
50 WaitForMultipleObjects(num, threads, true, INFINITE);
51
52 for (int i = 0; i < num; i++) {
53 CloseHandle(threads[i]);
54 }
55}
56
57#else
58// Create thread

Callers

nothing calls this directly

Calls 1

cutEndThreadFunction · 0.70

Tested by

no test coverage detected