fix the pthread initialization issue.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2508 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong@gmail.com 2012-12-23 06:16:14 +00:00
parent 0094caa850
commit 728064a45b

View File

@ -11,6 +11,7 @@
* Date Author Notes * Date Author Notes
* 2012-09-20 Bernard Change the name to components.c * 2012-09-20 Bernard Change the name to components.c
* And all components related header files. * And all components related header files.
* 2012-12-23 Bernard fix the pthread initialization issue.
*/ */
#include "components.h" #include "components.h"
@ -76,11 +77,13 @@ void rt_components_init(void)
#ifdef RT_USING_NEWLIB #ifdef RT_USING_NEWLIB
libc_system_init(RT_CONSOLE_DEVICE_NAME); libc_system_init(RT_CONSOLE_DEVICE_NAME);
#endif #else
/* the pthread system initialization will be initiallized in libc */
#ifdef RT_USING_PTHREADS #ifdef RT_USING_PTHREADS
pthread_system_init(); pthread_system_init();
#endif #endif
#endif
#ifdef RT_USING_RTGUI #ifdef RT_USING_RTGUI
rtgui_system_server_init(); rtgui_system_server_init();