[x265] [PATCH] threadpool.cpp: fix default pool param behaviour for window systems, if NULL or "*" or "" (default) x265 will use all available threads on each NUMA node
praveen at multicorewareinc.com
praveen at multicorewareinc.com
Thu Sep 8 14:16:55 CEST 2016
# HG changeset patch
# User Praveen Tiwari <praveen at multicorewareinc.com>
# Date 1473370883 25200
# Thu Sep 08 14:41:23 2016 -0700
# Branch stable
# Node ID 6e301b63952bc77f9e4710b6f46a6409e093d9c7
# Parent 6a9b6a828f791902a02fbf700caee2d3f32129c0
threadpool.cpp: fix default pool param behaviour for window systems, if NULL or "*" or "" (default) x265 will use all available threads on each NUMA node
diff -r 6a9b6a828f79 -r 6e301b63952b source/common/threadpool.cpp
--- a/source/common/threadpool.cpp Wed Jul 13 19:24:23 2016 +0530
+++ b/source/common/threadpool.cpp Thu Sep 08 14:41:23 2016 -0700
@@ -299,8 +299,8 @@
* For windows because threads can't be allocated to live across sockets
* changing the default behavior to be per-socket pools -- FIXME */
#if defined(_WIN32_WINNT) && _WIN32_WINNT >= _WIN32_WINNT_WIN7
- if (!p->numaPools)
- {
+ if (!p->numaPools || (strcmp(p->numaPools, "NULL") == 0 || strcmp(p->numaPools, "*") == 0 || strcmp(p->numaPools, "") == 0))
+ {
char poolString[50] = "";
for (int i = 0; i < numNumaNodes; i++)
{
More information about the x265-devel
mailing list