From 5211e7ff8fbd9dd7737fa5c0d83b505bbba0c893 Mon Sep 17 00:00:00 2001 From: qiuyiuestc Date: Sun, 11 Apr 2010 16:44:54 +0000 Subject: add module feature git-svn-id: https://rt-thread.googlecode.com/svn/trunk@604 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- src/thread.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/thread.c') diff --git a/src/thread.c b/src/thread.c index 8a2f8a7844..875a00aedb 100644 --- a/src/thread.c +++ b/src/thread.c @@ -19,6 +19,7 @@ * 2006-09-03 Bernard implement rt_thread_detach * 2008-02-16 Bernard fix the rt_thread_timeout bug * 2010-03-21 Bernard change the errno of rt_thread_delay/sleep to RT_EOK. + * 2010-04-11 yi.qiu add module feature */ #include @@ -627,4 +628,21 @@ rt_thread_t rt_thread_find(char* name) return thread; } +#ifdef RT_USING_MODULE +#include +/* some buildin kernel symbol */ +RTM_EXPORT(rt_thread_init) +RTM_EXPORT(rt_thread_detach) +RTM_EXPORT(rt_thread_create) +RTM_EXPORT(rt_thread_self) +RTM_EXPORT(rt_thread_find) +RTM_EXPORT(rt_thread_startup) +RTM_EXPORT(rt_thread_delete) +RTM_EXPORT(rt_thread_yield) +RTM_EXPORT(rt_thread_delay) +RTM_EXPORT(rt_thread_control) +RTM_EXPORT(rt_thread_suspend) +RTM_EXPORT(rt_thread_resume) +RTM_EXPORT(rt_thread_timeout) +#endif /*@}*/ -- cgit v1.3.1