Moved pthread_mutexattr_default inside #ifndef PTHREAD_KERNEL now that
we use it in the uthreads implementation. Moved enum pthread_mutextype here from libc_r/uthread/pthread_private.h. Change prototype for pthread_getspecific().
This commit is contained in:
parent
c1f20410c2
commit
9362f73db8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19637
@ -128,11 +128,17 @@ struct pthread_once {
|
|||||||
* Default attribute arguments.
|
* Default attribute arguments.
|
||||||
*/
|
*/
|
||||||
#define pthread_condattr_default NULL
|
#define pthread_condattr_default NULL
|
||||||
#define pthread_mutexattr_default NULL
|
|
||||||
#ifndef PTHREAD_KERNEL
|
#ifndef PTHREAD_KERNEL
|
||||||
|
#define pthread_mutexattr_default NULL
|
||||||
#define pthread_attr_default NULL
|
#define pthread_attr_default NULL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
enum pthread_mutextype {
|
||||||
|
MUTEX_TYPE_FAST = 1,
|
||||||
|
MUTEX_TYPE_COUNTING_FAST = 2, /* Recursive */
|
||||||
|
MUTEX_TYPE_MAX
|
||||||
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Thread function prototype definitions:
|
* Thread function prototype definitions:
|
||||||
*/
|
*/
|
||||||
@ -177,7 +183,7 @@ int pthread_create __P((pthread_t *, const pthread_attr_t *,
|
|||||||
int pthread_detach __P((pthread_t *));
|
int pthread_detach __P((pthread_t *));
|
||||||
int pthread_equal __P((pthread_t, pthread_t));
|
int pthread_equal __P((pthread_t, pthread_t));
|
||||||
void pthread_exit __P((void *));
|
void pthread_exit __P((void *));
|
||||||
int pthread_getspecific __P((pthread_key_t, void **));
|
void *pthread_getspecific __P((pthread_key_t));
|
||||||
int pthread_join __P((pthread_t, void **));
|
int pthread_join __P((pthread_t, void **));
|
||||||
int pthread_key_create __P((pthread_key_t *,
|
int pthread_key_create __P((pthread_key_t *,
|
||||||
void (*routine) (void *)));
|
void (*routine) (void *)));
|
||||||
|
Loading…
Reference in New Issue
Block a user