Skip to content
Snippets Groups Projects
Commit c8a56895 authored by Raphael Grimm's avatar Raphael Grimm
Browse files

Add simox::system_thread_id

parent bc9945e7
No related branches found
No related tags found
No related merge requests found
......@@ -86,6 +86,8 @@ SET(SOURCES
shapes/AxisAlignedBoundingBox.cpp
shapes/json_conversions.cpp
threads/system_thread_id.cpp
)
SET(INCLUDES
......@@ -252,6 +254,8 @@ SET(INCLUDES
shapes/json_conversions.h
backport/span/gcc_header.h
threads/system_thread_id.h
)
simox_generate_subdir_headers(
......
#pragma once
// This file is generated!
#include "threads/system_thread_id.h"
#include <syscall.h>
#include <unistd.h>
#include "system_thread_id.h"
namespace simox
{
long system_thread_id()
{
return syscall(SYS_gettid);
}
}
#pragma once
namespace simox
{
long system_thread_id();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment