MCPcopy Create free account
hub / github.com/alecazam/kram / getCurrentThread

Function getCurrentThread

libkram/kram/TaskSystem.cpp:257–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255//----------------------
256
257std::thread::native_handle_type getCurrentThread()
258{
259#if KRAM_WIN
260 return ::GetCurrentThread();
261#else
262 return pthread_self();
263#endif
264}
265
266// Ugh C++ "portable" thread classes that don't do anything useful
267// and make you define all this over and over again in so many apps.

Callers 7

setCurrentThreadNameFunction · 0.85
getCurrentThreadNameFunction · 0.85
set_current_priorityMethod · 0.85
set_current_affinityMethod · 0.85
setThreadInfoFunction · 0.85
log_threadsMethod · 0.85
addThreadIfNeededMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected