summaryrefslogtreecommitdiffstats
path: root/include/sys/thread.h
diff options
context:
space:
mode:
authorbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>2008-03-08 00:58:32 +0000
committerbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>2008-03-08 00:58:32 +0000
commit12472b242dc32f681a0d30efe97359ce67959e58 (patch)
treee9e04d9a89c83b8abf03c86fe3b6211ade6de690 /include/sys/thread.h
parent05ae387b5024b6b7014287e09ed9ce74befe91a3 (diff)
Just filling in more of the env.
git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@32 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
Diffstat (limited to 'include/sys/thread.h')
-rw-r--r--include/sys/thread.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sys/thread.h b/include/sys/thread.h
index 4532aee5b..44e2902a6 100644
--- a/include/sys/thread.h
+++ b/include/sys/thread.h
@@ -27,12 +27,13 @@ extern "C" {
#endif
#define thread_create(stk, stksize, func, arg, len, pp, state, pri) \
- __thread_create(stk, stksize, func, arg, len, pp, state, pri)
+ __thread_create(stk, stksize, (void (*)(void *))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 (*proc)(void *), void *args,
+ void (*func)(void *), void *args,
size_t len, int *pp, int state,
pri_t pri);
extern void __thread_exit(void);