summaryrefslogtreecommitdiff
path: root/src/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread.c')
-rw-r--r--src/thread.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/thread.c b/src/thread.c
index 809076bb2e..c3603657e0 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -158,6 +158,7 @@ rt_err_t rt_thread_init(struct rt_thread *thread,
stack_start, stack_size,
priority, tick);
}
+RTM_EXPORT(rt_thread_init);
/**
* This function will return self thread object
@@ -168,6 +169,7 @@ rt_thread_t rt_thread_self(void)
{
return rt_current_thread;
}
+RTM_EXPORT(rt_thread_self);
/**
* This function will start a thread and put it to system ready queue
@@ -208,6 +210,7 @@ rt_err_t rt_thread_startup(rt_thread_t thread)
return RT_EOK;
}
+RTM_EXPORT(rt_thread_startup);
/**
* This function will detach a thread. The thread object will be removed from
@@ -250,6 +253,8 @@ rt_err_t rt_thread_detach(rt_thread_t thread)
return RT_EOK;
}
+RTM_EXPORT(rt_thread_detach);
+
#ifdef RT_USING_HEAP
/**
@@ -293,6 +298,7 @@ rt_thread_t rt_thread_create(const char *name,
return thread;
}
+RTM_EXPORT(rt_thread_create);
/**
* This function will delete a thread. The thread object will be removed from
@@ -329,6 +335,7 @@ rt_err_t rt_thread_delete(rt_thread_t thread)
return RT_EOK;
}
+RTM_EXPORT(rt_thread_delete);
#endif
/**
@@ -372,6 +379,7 @@ rt_err_t rt_thread_yield(void)
return RT_EOK;
}
+RTM_EXPORT(rt_thread_yield);
/**
* This function will let current thread sleep for some ticks.
@@ -421,6 +429,7 @@ rt_err_t rt_thread_delay(rt_tick_t tick)
{
return rt_thread_sleep(tick);
}
+RTM_EXPORT(rt_thread_delay);
/**
* This function will control thread behaviors according to control command.
@@ -500,6 +509,7 @@ rt_err_t rt_thread_control(rt_thread_t thread, rt_uint8_t cmd, void *arg)
return RT_EOK;
}
+RTM_EXPORT(rt_thread_control);
/**
* This function will suspend the specified thread.
@@ -540,6 +550,7 @@ rt_err_t rt_thread_suspend(rt_thread_t thread)
return RT_EOK;
}
+RTM_EXPORT(rt_thread_suspend);
/**
* This function will resume a thread and put it to system ready queue.
@@ -585,6 +596,7 @@ rt_err_t rt_thread_resume(rt_thread_t thread)
return RT_EOK;
}
+RTM_EXPORT(rt_thread_resume);
/**
* This function is the timeout function for thread, normally which is invoked
@@ -614,6 +626,7 @@ void rt_thread_timeout(void *parameter)
/* do schedule */
rt_schedule();
}
+RTM_EXPORT(rt_thread_timeout);
/**
* This function will find the specified thread.
@@ -658,5 +671,6 @@ rt_thread_t rt_thread_find(char *name)
/* not found */
return RT_NULL;
}
+RTM_EXPORT(rt_thread_find);
/*@}*/