summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormbbill <[email protected]>2009-12-29 08:13:45 +0000
committermbbill <[email protected]>2009-12-29 08:13:45 +0000
commit54453a0748bbf6b6c5764f6becb81f8557b9e87f (patch)
tree3b644404bd856233e1cabdc3d6766ed9dc9ff6ec /src
parent8a590215b66ac780c9d5a168146b945b8071dcf6 (diff)
FIX: Revert thread.c and rtthread.h to previous version.
FIX: Abort handler will suspend current thread instead of terminate it. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@260 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src')
-rw-r--r--src/thread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/thread.c b/src/thread.c
index e678b06946..a9bfd91144 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -34,6 +34,7 @@ extern rt_uint8_t rt_current_priority;
extern rt_list_t rt_thread_defunct;
#endif
+static void rt_thread_exit(void);
void rt_thread_timeout(void* parameter);
static rt_err_t _rt_thread_init(struct rt_thread* thread,
@@ -222,7 +223,7 @@ rt_err_t rt_thread_startup (rt_thread_t thread)
return RT_EOK;
}
-void rt_thread_exit()
+static void rt_thread_exit()
{
struct rt_thread* thread;
register rt_base_t temp;