add pthread initialization in libc_system_init.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1107 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong
2010-11-24 11:04:08 +00:00
parent 56c6c301bc
commit f67eb617f5
3 changed files with 46 additions and 73 deletions
+4
View File
@@ -97,6 +97,7 @@ int libc_time_to_tick(const struct timespec *time)
void libc_system_init(const char* tty_name)
{
int fd;
extern int pthread_system_init(void);
/* init console device */
rt_console_init(tty_name);
@@ -112,4 +113,7 @@ void libc_system_init(const char* tty_name)
/* initialize system time */
libc_system_time_init();
#ifdef RT_USING_PTHREADS
pthread_system_init();
#endif
}
File diff suppressed because it is too large Load Diff
+1 -8
View File
@@ -17,14 +17,7 @@ struct posix_sem
/* next posix semaphore */
struct posix_sem* next;
};
typedef struct posix_sem posix_sem_t;
struct semdes
{
rt_uint32_t flags;
posix_sem_t* sem;
};
typedef struct semdes sem_t;
typedef struct posix_sem sem_t;
int sem_close(sem_t *sem);
int sem_destroy(sem_t *sem);