Skip to content

Support QNX SDP 8.0 and 7.1 in basic CPU build #1042

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions libkineto/src/ThreadUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@

#ifndef _WIN32
#include <pthread.h>
#ifdef __QNX__
#include <process.h>
#else
#include <sys/syscall.h>
#endif
#include <sys/types.h>
#include <unistd.h>
#else // _WIN32
Expand Down Expand Up @@ -66,6 +70,8 @@ int32_t systemThreadId(bool cache) {
sysTid = (int32_t)GetCurrentThreadId();
#elif defined __FreeBSD__
syscall(SYS_thr_self, &sysTid);
#elif defined __QNX__
_sysTid = (int32_t)gettid();
#else
sysTid = (int32_t)syscall(SYS_gettid);
#endif
Expand Down
Loading