# HG changeset patch
# User Mahesh Pittala <[email protected]>
# Date 1450774004 -19800
# Tue Dec 22 14:16:44 2015 +0530
# Node ID cb97973f7ae5ab5db25a63850d549152f71394cd
# Parent 5276fbdce4bd2598b8ccf363319f94c31523272d
threadpool: use all available threads on each NUMA node with --pools=NULL
option too
from x265.readthedocs, --pools = NULL, "", "*" are doing same functionality.
--pools="" & --pools="*" are using all threads but when we pass --pools=NULL,
disabled
all threads pools but supposed to enable.
diff -r 5276fbdce4bd -r cb97973f7ae5 source/common/threadpool.cpp
--- a/source/common/threadpool.cpp Tue Dec 22 09:05:34 2015 +0530
+++ b/source/common/threadpool.cpp Tue Dec 22 14:16:44 2015 +0530
@@ -56,6 +56,8 @@
#if MACOS
#include <sys/param.h>
#include <sys/sysctl.h>
+#else
+#define strcasecmp _stricmp
#endif
#if HAVE_LIBNUMA
#include <numa.h>
@@ -277,7 +279,7 @@
}
else if (*nodeStr == '-')
threadsPerPool[i] = 0;
- else if (*nodeStr == '*')
+ else if (*nodeStr == '*' || !strcasecmp(nodeStr,
"NULL"))
{
for (int j = i; j < numNumaNodes; j++)
{
_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel