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

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
}