tumbler/0001-multithread-using-the-number-of-processors-on-the-sy.patch
2021-06-15 20:08:19 +08:00

13 lines
611 B
Diff

diff -uNr tumbler-0.3.1.orig/tumblerd/tumbler-group-scheduler.c tumbler-0.3.1/tumblerd/tumbler-group-scheduler.c
--- tumbler-0.3.1.orig/tumblerd/tumbler-group-scheduler.c 2020-11-16 00:19:23.000000000 +0800
+++ tumbler-0.3.1/tumblerd/tumbler-group-scheduler.c 2021-06-15 20:05:33.748518520 +0800
@@ -164,7 +164,7 @@
/* allocate a pool with one thread for all requests */
scheduler->pool = g_thread_pool_new (tumbler_group_scheduler_thread,
- scheduler, 1, TRUE, NULL);
+ scheduler, g_get_num_processors(), TRUE, NULL);
}