Download src/runtime/patches/pthreadpool-spin-wait.patch from Arm/Arm-Runtime-for-YOLO26-on-Raspberry-Pi-5: direct link, hf CLI and curl.
- Browser
- Download file 555 Bytes
-
https://huggingface.co/Arm/Arm-Runtime-for-YOLO26-on-Raspberry-Pi-5/resolve/main/src/runtime/patches/pthreadpool-spin-wait.patch
- Command line
-
hf download hf://Arm/Arm-Runtime-for-YOLO26-on-Raspberry-Pi-5/src/runtime/patches/pthreadpool-spin-wait.patch
-
curl -L -o pthreadpool-spin-wait.patch https://huggingface.co/Arm/Arm-Runtime-for-YOLO26-on-Raspberry-Pi-5/resolve/main/src/runtime/patches/pthreadpool-spin-wait.patch
555 Bytes
| diff --git a/sources/pthreadpool/src/threadpool-common.h b/sources/pthreadpool/src/threadpool-common.h | |
| index 1165f14..0421cad 100644 | |
| --- a/sources/pthreadpool/src/threadpool-common.h | |
| +++ b/sources/pthreadpool/src/threadpool-common.h | |
| #else | |
| #define PTHREADPOOL_SPIN_YIELD_ITERATIONS 0 | |
| -#define PTHREADPOOL_SPIN_PAUSE_ITERATIONS 1000 | |
| +#define PTHREADPOOL_SPIN_PAUSE_ITERATIONS 100000 | |
| #endif // defined(__ANDROID__) | |
| #define PTHREADPOOL_SPIN_WAIT_ITERATIONS \ | |
| (PTHREADPOOL_SPIN_PAUSE_ITERATIONS + PTHREADPOOL_SPIN_YIELD_ITERATIONS) | |