diff options
| author | [email protected] <[email protected]> | 2012-11-23 02:40:32 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-11-23 02:40:32 +0000 |
| commit | 44eaae8c80cfd320bb81fce14aec60f207fb240f (patch) | |
| tree | 825b852c6eccebd9fd655271ee3b94d5cb8ccd6a /components/pthreads/sched.c | |
| parent | ffbd0a167379c3fe4c31a4d0f65d7c3adfd4f16a (diff) | |
export more symbols of PThread.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2433 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/pthreads/sched.c')
| -rw-r--r-- | components/pthreads/sched.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/pthreads/sched.c b/components/pthreads/sched.c index f0dcedbfb7..9c57ba2345 100644 --- a/components/pthreads/sched.c +++ b/components/pthreads/sched.c @@ -5,6 +5,7 @@ int sched_yield(void) rt_thread_yield();
return 0;
}
+RTM_EXPORT(sched_yield);
int sched_get_priority_min(int policy)
{
@@ -13,6 +14,7 @@ int sched_get_priority_min(int policy) return 0;
}
+RTM_EXPORT(sched_get_priority_min);
int sched_get_priority_max(int policy)
{
@@ -21,8 +23,10 @@ int sched_get_priority_max(int policy) return RT_THREAD_PRIORITY_MAX - 1;
}
+RTM_EXPORT(sched_get_priority_max);
int sched_setscheduler(pid_t pid, int policy)
{
return ENOTSUP;
}
+RTM_EXPORT(sched_setscheduler);
|
