diff --git a/hbt/src/common/Defs.h b/hbt/src/common/Defs.h index 3a31f453..59d15c21 100644 --- a/hbt/src/common/Defs.h +++ b/hbt/src/common/Defs.h @@ -30,6 +30,10 @@ inline pid_t gettid() noexcept { return static_cast(syscall(SYS_gettid)); } +inline pid_t getpid() noexcept { + return static_cast(syscall(SYS_gettid)); +} + #endif // Branch hint macros. C++20 will include them as part of language.