MCPcopy Create free account
hub / github.com/DISTRHO/DPF / getCurrentThreadHandle

Function getCurrentThreadHandle

dgl/src/ApplicationPrivateData.cpp:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27typedef std::list<DGL_NAMESPACE::Window*>::reverse_iterator WindowListReverseIterator;
28
29static d_ThreadHandle getCurrentThreadHandle() noexcept
30{
31 #ifdef DISTRHO_OS_WINDOWS
32 return GetCurrentThread();
33 #else
34 return pthread_self();
35 #endif
36}
37
38static bool isThisTheMainThread(const d_ThreadHandle mainThreadHandle) noexcept
39{

Callers 2

isThisTheMainThreadFunction · 0.85
PrivateDataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected