Wait for events from host

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2022-10-06 12:21:52 +00:00
committed by Compute-Runtime-Automation
parent 3323deb825
commit b21fef96cb
16 changed files with 231 additions and 4 deletions

View File

@@ -25,6 +25,12 @@ unsigned int getProcessId() {
return getpid();
}
unsigned long getNumThreads() {
struct stat taskStat;
stat("/proc/self/task", &taskStat);
return taskStat.st_nlink - 2;
}
int close(int fileDescriptor) {
return ::close(fileDescriptor);
}