Merge branch 'fix-branch' into refs/top-bases/zfs-branch
This commit is contained in:
commit
035e4d373e
|
@ -196,9 +196,9 @@ _NOTE(CONSTCOND) } while (0)
|
||||||
/*
|
/*
|
||||||
* Threads
|
* Threads
|
||||||
*/
|
*/
|
||||||
|
#define curthread ((void *)(uintptr_t)pthread_self())
|
||||||
/* XXX: not portable */
|
#define tsd_get(key) pthread_getspecific(key)
|
||||||
#define curthread ((void *)(uintptr_t)pthread_self())
|
#define tsd_set(key, val) pthread_setspecific(key, val)
|
||||||
|
|
||||||
typedef struct kthread kthread_t;
|
typedef struct kthread kthread_t;
|
||||||
typedef void (*thread_func_t)(void *);
|
typedef void (*thread_func_t)(void *);
|
||||||
|
|
Loading…
Reference in New Issue