forked from xuos/xiuos
fix compile error in pthread_arm.h
This commit is contained in:
parent
6b41cdbcfe
commit
3d9160fa44
|
@ -32,33 +32,33 @@ extern "C" {
|
||||||
typedef int pid_t;
|
typedef int pid_t;
|
||||||
typedef unsigned long int pthread_t;
|
typedef unsigned long int pthread_t;
|
||||||
|
|
||||||
// struct sched_param {
|
struct sched_param {
|
||||||
// int sched_priority; /* process execution scheduling priority */
|
int sched_priority; /* process execution scheduling priority */
|
||||||
// size_t slice; /* time slice in SCHED_RR mode (ms) */
|
size_t slice; /* time slice in SCHED_RR mode (ms) */
|
||||||
// };
|
};
|
||||||
// typedef struct pthread_attr {
|
typedef struct pthread_attr {
|
||||||
// unsigned char is_initialized; /* if the attr is initialized set to 1, otherwise set to 0 */
|
unsigned char is_initialized; /* if the attr is initialized set to 1, otherwise set to 0 */
|
||||||
// void *stackaddr; /* the start addr of the stack of the pthead */
|
void *stackaddr; /* the start addr of the stack of the pthead */
|
||||||
// size_t stacksize; /* the size of the stack of the pthead */
|
size_t stacksize; /* the size of the stack of the pthead */
|
||||||
// unsigned char contentionscope; /* the scope of contention, only PTHREAD_SCOPE_SYSTEM is supported */
|
unsigned char contentionscope; /* the scope of contention, only PTHREAD_SCOPE_SYSTEM is supported */
|
||||||
// unsigned char inheritsched; /* when set to PTHREAD_INHERIT_SCHED, specifies that the thread scheduling attributes
|
unsigned char inheritsched; /* when set to PTHREAD_INHERIT_SCHED, specifies that the thread scheduling attributes
|
||||||
// shall be inherited from the creating thread, and the scheduling attributes in this
|
shall be inherited from the creating thread, and the scheduling attributes in this
|
||||||
// attr argument shall be ignored */
|
attr argument shall be ignored */
|
||||||
// unsigned char schedpolicy; /* the sched policy of the thread */
|
unsigned char schedpolicy; /* the sched policy of the thread */
|
||||||
// struct sched_param schedparam; /* the parameter of the thread scheduling */
|
struct sched_param schedparam; /* the parameter of the thread scheduling */
|
||||||
// size_t guardsize; /* guardsize is set to protect the stack, not supported */
|
size_t guardsize; /* guardsize is set to protect the stack, not supported */
|
||||||
// unsigned char detachstate; /* when set to PTHREAD_CREATE_JOINABLE, thread will not end untill the creating thread end */
|
unsigned char detachstate; /* when set to PTHREAD_CREATE_JOINABLE, thread will not end untill the creating thread end */
|
||||||
// } pthread_attr_t;
|
} pthread_attr_t;
|
||||||
|
|
||||||
// typedef struct pthread_mutexattr {
|
typedef struct pthread_mutexattr {
|
||||||
// int is_initialized;
|
int is_initialized;
|
||||||
// int type;
|
int type;
|
||||||
// int protocol;
|
int protocol;
|
||||||
// int prioceiling;
|
int prioceiling;
|
||||||
// int pshared;
|
int pshared;
|
||||||
// } pthread_mutexattr_t;
|
} pthread_mutexattr_t;
|
||||||
|
|
||||||
// typedef int pthread_mutex_t ;
|
typedef int pthread_mutex_t ;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue