MCPcopy Create free account
hub / github.com/apple/foundationdb / waitThread

Function waitThread

flow/Platform.actor.cpp:2892–2900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2890#endif
2891
2892void waitThread(THREAD_HANDLE thread) {
2893#ifdef _WIN32
2894 WaitForSingleObject(thread, INFINITE);
2895#elif (defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__))
2896 pthread_join(thread, nullptr);
2897#else
2898#error Port me!
2899#endif
2900}
2901
2902void setThreadPriority(int pri) {
2903#ifdef __linux__

Callers 5

stopMethod · 0.85
Net2.actor.cppFile · 0.85
runNetworkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected