NBEngine/engine/NBCore/src/Processes.cpp
2026-07-19 22:19:50 -05:00

29 lines
544 B
C++

#ifdef _NB_TARGET_WINDOWS
#include <Windows.h>
#endif // _NB_TARGET_WINDOWS
#ifdef _NB_TARGET_LINUX
#include <unistd.h>
#endif // _NB_TARGET_LINUX
#include <NBCore/Processes.hpp>
namespace nb {
#ifdef _NB_TARGET_WINDOWS
uint64_t GetPID() {
return GetCurrentProcessId();
}
#endif // _NB_TARGET_WINDOWS
#ifdef _NB_TARGET_LINUX
#endif // _NB_TARGET_LINUX
#ifdef _NB_TARGET_WINDOWS
uint64_t GetTID() {
return GetCurrentThreadId();
}
#endif // _NB_TARGET_WINDOWS
#ifdef _NB_TARGET_LINUX
#endif // _NB_TARGET_LINUX
} // namespace nb