carb::this_thread::getProcessIdCached¶
Defined in carb/thread/Util.h
-
static inline thread::ProcessId
carb::this_thread
::
getProcessIdCached
()¶ Get the ID of the currently executing process.
Note
Linux: This value is cached, so this can be unsafe if you are using fork() or clone() without calling exec() after. This should be safe if you’re only using carb::launcher::ILauncher to launch processes.
- Returns
The current ID of the process.