Added tid global tools

This commit is contained in:
NaifBanana
2026-09-09 12:15:41 -05:00
parent be68245771
commit e2ea8c5373
2 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -7,7 +7,10 @@
namespace nb {
uint64_t GetPID();
uint64_t getTID();
uint64_t GetTID();
extern thread_local const uint64_t CurrentTID;
static const uint64_t MainTID = GetTID();
} // namespace nb
+2
View File
@@ -26,4 +26,6 @@ uint64_t GetTID() {
#ifdef _NB_TARGET_LINUX
#endif // _NB_TARGET_LINUX
thread_local const uint64_t CurrentTID = GetTID();
} // namespace nb