mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-16 12:45:18 +03:00
Intel® Graphics Compute Runtime for oneAPI Level Zero and OpenCL™ Driver https://github.com/intel/compute-runtime
22 lines
771 B
Diff
22 lines
771 B
Diff
pthread_yield -> sched_yield
|
|
---
|
|
--- a/opencl/test/unit_test/os_interface/linux/drm_gem_close_worker_tests.cpp
|
|
+++ b/opencl/test/unit_test/os_interface/linux/drm_gem_close_worker_tests.cpp
|
|
@@ -121,7 +121,7 @@
|
|
|
|
//wait for worker to complete or deadCnt drops
|
|
while (!worker->isEmpty() && (deadCnt-- > 0))
|
|
- pthread_yield(); //yield to another threads
|
|
+ sched_yield(); //yield to another threads
|
|
|
|
worker->close(false);
|
|
|
|
@@ -142,7 +142,7 @@
|
|
|
|
//wait for worker to complete or deadCnt drops
|
|
while (!worker->isEmpty() && (deadCnt-- > 0))
|
|
- pthread_yield(); //yield to another threads
|
|
+ sched_yield(); //yield to another threads
|
|
|
|
//and check if GEM was closed
|
|
EXPECT_EQ(1, this->drmMock->gem_close_cnt.load());
|