mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 09:08:25 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user