mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
Moved enum pthread_mutextype to pthread.h.
Add pthread_mutexattr_default definition.
This commit is contained in:
parent
f258836a24
commit
509de77c10
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19631
@ -75,12 +75,6 @@ struct pthread_queue {
|
||||
/*
|
||||
* Mutex definitions.
|
||||
*/
|
||||
enum pthread_mutextype {
|
||||
MUTEX_TYPE_FAST = 1,
|
||||
MUTEX_TYPE_COUNTING_FAST = 2, /* Recursive */
|
||||
MUTEX_TYPE_MAX
|
||||
};
|
||||
|
||||
union pthread_mutex_data {
|
||||
void *m_ptr;
|
||||
int m_count;
|
||||
@ -511,6 +505,14 @@ SCLASS struct pthread_attr pthread_attr_default
|
||||
;
|
||||
#endif
|
||||
|
||||
/* Default thread attributes: */
|
||||
SCLASS struct pthread_mutex_attr pthread_mutexattr_default
|
||||
#ifdef GLOBAL_PTHREAD_PRIVATE
|
||||
= { MUTEX_TYPE_FAST, 0 };
|
||||
#else
|
||||
;
|
||||
#endif
|
||||
|
||||
/* File table information: */
|
||||
SCLASS struct fd_table_entry **_thread_fd_table
|
||||
#ifdef GLOBAL_PTHREAD_PRIVATE
|
||||
|
@ -75,12 +75,6 @@ struct pthread_queue {
|
||||
/*
|
||||
* Mutex definitions.
|
||||
*/
|
||||
enum pthread_mutextype {
|
||||
MUTEX_TYPE_FAST = 1,
|
||||
MUTEX_TYPE_COUNTING_FAST = 2, /* Recursive */
|
||||
MUTEX_TYPE_MAX
|
||||
};
|
||||
|
||||
union pthread_mutex_data {
|
||||
void *m_ptr;
|
||||
int m_count;
|
||||
@ -511,6 +505,14 @@ SCLASS struct pthread_attr pthread_attr_default
|
||||
;
|
||||
#endif
|
||||
|
||||
/* Default thread attributes: */
|
||||
SCLASS struct pthread_mutex_attr pthread_mutexattr_default
|
||||
#ifdef GLOBAL_PTHREAD_PRIVATE
|
||||
= { MUTEX_TYPE_FAST, 0 };
|
||||
#else
|
||||
;
|
||||
#endif
|
||||
|
||||
/* File table information: */
|
||||
SCLASS struct fd_table_entry **_thread_fd_table
|
||||
#ifdef GLOBAL_PTHREAD_PRIVATE
|
||||
|
@ -75,12 +75,6 @@ struct pthread_queue {
|
||||
/*
|
||||
* Mutex definitions.
|
||||
*/
|
||||
enum pthread_mutextype {
|
||||
MUTEX_TYPE_FAST = 1,
|
||||
MUTEX_TYPE_COUNTING_FAST = 2, /* Recursive */
|
||||
MUTEX_TYPE_MAX
|
||||
};
|
||||
|
||||
union pthread_mutex_data {
|
||||
void *m_ptr;
|
||||
int m_count;
|
||||
@ -511,6 +505,14 @@ SCLASS struct pthread_attr pthread_attr_default
|
||||
;
|
||||
#endif
|
||||
|
||||
/* Default thread attributes: */
|
||||
SCLASS struct pthread_mutex_attr pthread_mutexattr_default
|
||||
#ifdef GLOBAL_PTHREAD_PRIVATE
|
||||
= { MUTEX_TYPE_FAST, 0 };
|
||||
#else
|
||||
;
|
||||
#endif
|
||||
|
||||
/* File table information: */
|
||||
SCLASS struct fd_table_entry **_thread_fd_table
|
||||
#ifdef GLOBAL_PTHREAD_PRIVATE
|
||||
|
Loading…
Reference in New Issue
Block a user