diff --git a/src/test/test_be_process_statistics.cpp b/src/test/test_be_process_statistics.cpp index 86e4c7b..e95acf3 100644 --- a/src/test/test_be_process_statistics.cpp +++ b/src/test/test_be_process_statistics.cpp @@ -17,6 +17,8 @@ #include #include +#include + using namespace std; using namespace BiometricEvaluation; @@ -40,7 +42,7 @@ sleepyChild(void *) static void* busyChild(void *tNum) { - pid_t tID = syscall(SYS_gettid); + const auto tID = std::this_thread::get_id(); cout << __FUNCTION__ << " , TID is " << tID << "\n"; std::ifstream ifs("/dev/zero");