diff options
| author | [email protected] <[email protected]> | 2012-12-23 06:16:14 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-12-23 06:16:14 +0000 |
| commit | 728064a45bc2080357e87f2468a03465284d8277 (patch) | |
| tree | 3f36f6a9fc9032a07e18abf1fd5c7519109e715d /components/init | |
| parent | 0094caa850c878e6e136a8828e82f51985f1072c (diff) | |
fix the pthread initialization issue.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2508 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/init')
| -rw-r--r-- | components/init/components.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/init/components.c b/components/init/components.c index 01cd117017..f7647451c7 100644 --- a/components/init/components.c +++ b/components/init/components.c @@ -11,6 +11,7 @@ * Date Author Notes * 2012-09-20 Bernard Change the name to components.c * And all components related header files. + * 2012-12-23 Bernard fix the pthread initialization issue. */ #include "components.h" @@ -76,11 +77,13 @@ void rt_components_init(void) #ifdef RT_USING_NEWLIB libc_system_init(RT_CONSOLE_DEVICE_NAME); -#endif +#else + /* the pthread system initialization will be initiallized in libc */ #ifdef RT_USING_PTHREADS pthread_system_init(); #endif +#endif #ifdef RT_USING_RTGUI rtgui_system_server_init(); |
