git: taskqueue - Improve _start_threads, refactor code

看板DFBSD_commit作者時間16年前 (2009/10/02 21:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
commit 6b26ab14487d24407e2ddbb5a33147badae41622 Author: Alex Hornung <ahornung@gmail.com> Date: Fri Oct 2 13:20:30 2009 +0100 taskqueue - Improve _start_threads, refactor code * Change taskqueue_start_threads to take another argument, ncpu, which specifies on what cpu the thread(s) should be created. If ncpu is <= -1 and count is > 1, then each of the count threads is allocated in a round robin fashion to each cpu. * Switch the per-cpu taskqueues to use the new taskqueue threads API. Discussed-with: Simon "corecode" Schubert Summary of changes: sys/kern/subr_taskqueue.c | 44 ++++++++++++++++---------------------------- sys/sys/taskqueue.h | 3 ++- 2 files changed, 18 insertions(+), 29 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6b26ab14487d24407e2ddbb5a33147badae41622 -- DragonFly BSD source repository
文章代碼(AID): #1AnW3Pen (DFBSD_commit)
文章代碼(AID): #1AnW3Pen (DFBSD_commit)