git: taskqueue(9): Add enqueue func assertion for taskqueue_start_threads()

Aaron LI aly at crater.dragonflybsd.org
Sat Nov 4 20:33:02 PDT 2023


commit cb0b532053ded25b40f270a6f289b0fea0deda76
Author: Aaron LI <aly at aaronly.me>
Date:   Wed Nov 1 12:57:28 2023 +0800

    taskqueue(9): Add enqueue func assertion for taskqueue_start_threads()
    
    It's already described in the taskqueue(9) man page for
    taskqueue_start_threads():
    
    The taskqueue specified by tqp must be created previously by calling
    taskqueue_create() with the argument enqueue set to
    'taskqueue_thread_enqueue'.
    
    Therefore, add such an assertion to taskqueue_start_threads() to catch
    potential caller mistakes.

Summary of changes:
 sys/kern/subr_taskqueue.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cb0b532053ded25b40f270a6f289b0fea0deda76


-- 
DragonFly BSD source repository


More information about the Commits mailing list