Skip to content

Commit

Permalink
Replace call to syscall()
Browse files Browse the repository at this point in the history
  • Loading branch information
gfiumara committed Oct 7, 2024
1 parent 11024a9 commit 332d05d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/test_be_process_statistics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include <be_time.h>
#include <be_process_statistics.h>

#include <thread>

using namespace std;
using namespace BiometricEvaluation;

Expand All @@ -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");
Expand Down

0 comments on commit 332d05d

Please sign in to comment.