BugID:19018110: modify code style
@@ -45,7 +45,7 @@ extern "C"
#define DEFAULT_THREAD_PRIORITY 30
#define DEFAULT_THREAD_SLICE 10
-#define PTHREAD_INITIALIZED_OBJ 0xABCDEFEF
+#define PTHREAD_INITIALIZED_OBJ 0XABCDEFEF
#define PTHREAD_ONCE_INIT 0
enum {
@@ -79,7 +79,7 @@ typedef struct pthread_attr {
unsigned char detachstate; /* when set to PTHREAD_CREATE_JOINABLE, thread will not end untill the creating thread end */
} pthread_attr_t;
-#define PTHREAD_MAGIC 0x11223344
+#define PTHREAD_MAGIC 0X11223344
typedef struct _pthread_cleanup {
void *para;
@@ -198,6 +198,7 @@ int pthread_attr_getscope(const pthread_attr_t *attr, int *scope);
/* definetion for pthread mutex */
#define PTHREAD_UNUSED_YET_OBJ -1
+
#define PTHREAD_MUTEX_INITIALIZER { NULL, PTHREAD_UNUSED_YET_OBJ }
/*
@@ -296,6 +297,7 @@ typedef struct pthread_cond {
int signals;
ksem_t *wait_sem;
ksem_t *wait_done;
+
pthread_condattr_t *attr;
} pthread_cond_t;
@@ -347,3 +349,4 @@ int pthread_key_delete(pthread_key_t key);
#endif /* __cplusplus */
#endif /* PTHREAD_H */
+
