mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 12:11:31 +08:00
Wait for events from host
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
3323deb825
commit
b21fef96cb
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user