diff options
| author | qiuyiuestc <[email protected]> | 2010-04-20 01:10:10 +0000 |
|---|---|---|
| committer | qiuyiuestc <[email protected]> | 2010-04-20 01:10:10 +0000 |
| commit | 91ecf31a089d5074ad3353cd86d45e41d5a49cf6 (patch) | |
| tree | 8d22449ebe4dc1fe2e61c21cae2e0f4e7a597ccf /components/thread/module_thread_dynamic.c | |
| parent | 1f42e27ecee6024edf18b99f8e4f21e3bc47cab2 (diff) | |
move thread directory
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@656 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/thread/module_thread_dynamic.c')
| -rw-r--r-- | components/thread/module_thread_dynamic.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/components/thread/module_thread_dynamic.c b/components/thread/module_thread_dynamic.c deleted file mode 100644 index d4ac0f6716..0000000000 --- a/components/thread/module_thread_dynamic.c +++ /dev/null @@ -1,25 +0,0 @@ -#include <rtthread.h>
-
-#define THREAD_PRIORITY 25
-#define THREAD_STACK_SIZE 512
-#define THREAD_TIMESLICE 5
-
-static void thread_entry(void* parameter)
-{
- rt_kprintf("thread dynamicly created ok\n");
- rt_thread_delay(10);
- rt_kprintf("thread exit\n");
-}
-
-int rtm_main()
-{
- rt_thread_t tid;
-
- tid = rt_thread_create("test",
- thread_entry, RT_NULL,
- THREAD_STACK_SIZE, THREAD_PRIORITY, THREAD_TIMESLICE);
- if (tid != RT_NULL)
- rt_thread_startup(tid);
-
- return 0;
-}
\ No newline at end of file |
