More compat changes

This commit is contained in:
Brian Behlendorf 2008-12-22 13:47:58 -08:00
parent fdd6fa0727
commit 6bed331e59
1 changed files with 3 additions and 3 deletions

View File

@ -190,9 +190,9 @@ _NOTE(CONSTCOND) } while (0)
/*
* Threads
*/
/* XXX: not portable */
#define curthread ((void *)(uintptr_t)pthread_self())
#define curthread ((void *)(uintptr_t)pthread_self())
#define tsd_get(key) pthread_getspecific(key)
#define tsd_set(key, val) pthread_setspecific(key, val)
typedef struct kthread kthread_t;
typedef void (*thread_func_t)(void *);