diff options
author | behlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c> | 2008-03-10 19:25:20 +0000 |
---|---|---|
committer | behlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c> | 2008-03-10 19:25:20 +0000 |
commit | 51f443a0741b5a74ecb078ab16d3eac489c90fd1 (patch) | |
tree | 225959b71d33d114905ee7a12bcfa2af76aee34c /include/sys/thread.h | |
parent | 4098c921b68edd5ae03f5213f08fd1b99cd05211 (diff) |
Add some typedefs to make it clearer when we passing a function,
Add fm_panic define
Add another bad atomic hack (need to do this right)
git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@35 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
Diffstat (limited to 'include/sys/thread.h')
-rw-r--r-- | include/sys/thread.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/sys/thread.h b/include/sys/thread.h index 44e2902a6..c7b104374 100644 --- a/include/sys/thread.h +++ b/include/sys/thread.h @@ -26,14 +26,16 @@ extern "C" { #define TS_WAIT 0x20 /* No clean linux mapping */ #endif +typedef void (*thread_func_t)(void *); + #define thread_create(stk, stksize, func, arg, len, pp, state, pri) \ - __thread_create(stk, stksize, (void (*)(void *))func, \ + __thread_create(stk, stksize, (thread_func_t)func, \ arg, len, pp, state, pri) #define thread_exit() __thread_exit() #define curthread get_current() extern kthread_t *__thread_create(caddr_t stk, size_t stksize, - void (*func)(void *), void *args, + thread_func_t func, void *args, size_t len, int *pp, int state, pri_t pri); extern void __thread_exit(void); |