1 /* 2 * Copyright 2018, Haiku, Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _FBSD_COMPAT_IFLIB_SYS_KTHREAD_H_ 6 #define _FBSD_COMPAT_IFLIB_SYS_KTHREAD_H_ 7 8 /* include the real sys/kthread.h */ 9 #include_next <sys/kthread.h> 10 11 #include <sys/pcpu.h> 12 13 14 #define SRQ_BORING 0 15 16 void sched_prio(struct thread* td, u_char prio); 17 void sched_add(struct thread* td, int flags); 18 19 int kthread_add(void (*func)(void *), void *arg, void* p, 20 struct thread** newtdp, int flags, int pages, const char* fmt, ...); 21 void kthread_exit(); 22 23 #define thread_lock(td) 24 #define thread_unlock(td) 25 26 27 #endif /* _FBSD_COMPAT_IFLIB_SYS_KTHREAD_H_ */ 28