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/pthread_cond.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/pthread_cond.c')
| -rw-r--r-- | components/pthreads/pthread_cond.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/components/pthreads/pthread_cond.c b/components/pthreads/pthread_cond.c index 1e2ee15e6d..581d20e04f 100644 --- a/components/pthreads/pthread_cond.c +++ b/components/pthreads/pthread_cond.c @@ -7,6 +7,7 @@ int pthread_condattr_destroy(pthread_condattr_t *attr) return 0;
}
+RTM_EXPORT(pthread_condattr_destroy);
int pthread_condattr_init(pthread_condattr_t *attr)
{
@@ -15,18 +16,21 @@ int pthread_condattr_init(pthread_condattr_t *attr) return 0;
}
+RTM_EXPORT(pthread_condattr_init);
int pthread_condattr_getclock(const pthread_condattr_t *attr,
clockid_t *clock_id)
{
return 0;
}
+RTM_EXPORT(pthread_condattr_getclock);
int pthread_condattr_setclock(pthread_condattr_t *attr,
clockid_t clock_id)
{
return 0;
}
+RTM_EXPORT(pthread_condattr_setclock);
int pthread_condattr_getpshared(const pthread_condattr_t *attr, int *pshared)
{
@@ -35,6 +39,7 @@ int pthread_condattr_getpshared(const pthread_condattr_t *attr, int *pshared) *pshared = PTHREAD_PROCESS_PRIVATE;
return 0;
}
+RTM_EXPORT(pthread_condattr_getpshared);
int pthread_condattr_setpshared(pthread_condattr_t*attr, int pshared)
{
@@ -46,6 +51,7 @@ int pthread_condattr_setpshared(pthread_condattr_t*attr, int pshared) return 0;
}
+RTM_EXPORT(pthread_condattr_setpshared);
int pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr)
{
@@ -69,6 +75,7 @@ int pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr) return 0;
}
+RTM_EXPORT(pthread_cond_init);
int pthread_cond_destroy(pthread_cond_t *cond)
{
@@ -85,6 +92,7 @@ int pthread_cond_destroy(pthread_cond_t *cond) return 0;
}
+RTM_EXPORT(pthread_cond_destroy);
int pthread_cond_broadcast(pthread_cond_t *cond)
{
@@ -118,6 +126,7 @@ int pthread_cond_broadcast(pthread_cond_t *cond) return 0;
}
+RTM_EXPORT(pthread_cond_broadcast);
int pthread_cond_signal(pthread_cond_t *cond)
{
@@ -131,6 +140,7 @@ int pthread_cond_signal(pthread_cond_t *cond) return 0;
}
+RTM_EXPORT(pthread_cond_signal);
rt_err_t _pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
rt_int32_t timeout)
@@ -152,6 +162,7 @@ rt_err_t _pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, pthread_mutex_lock(mutex);
return result;
}
+RTM_EXPORT(_pthread_cond_timedwait);
int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex)
{
@@ -162,6 +173,7 @@ int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) return EINVAL;
}
+RTM_EXPORT(pthread_cond_wait);
int pthread_cond_timedwait(pthread_cond_t *cond,
pthread_mutex_t * mutex,
@@ -177,3 +189,5 @@ int pthread_cond_timedwait(pthread_cond_t *cond, return EINVAL;
}
+RTM_EXPORT(pthread_cond_timedwait);
+
|
