diff options
| author | bernard.xiong <[email protected]> | 2010-11-24 11:04:08 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-11-24 11:04:08 +0000 |
| commit | f67eb617f599e7b2c8a37eb7d74cd66d37febfc3 (patch) | |
| tree | 4d75dfecbd11ab775d211839d0d0ad2f303ecb60 /components/libc | |
| parent | 56c6c301bcd923372797d6415ff38756705b92d0 (diff) | |
add pthread initialization in libc_system_init.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1107 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/libc')
| -rw-r--r-- | components/libc/newlib/libc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/libc/newlib/libc.c b/components/libc/newlib/libc.c index 8c298e513b..7d2c3cac56 100644 --- a/components/libc/newlib/libc.c +++ b/components/libc/newlib/libc.c @@ -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
}
|
