From 44eaae8c80cfd320bb81fce14aec60f207fb240f Mon Sep 17 00:00:00 2001 From: "bernard.xiong@gmail.com" Date: Fri, 23 Nov 2012 02:40:32 +0000 Subject: export more symbols of PThread. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2433 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/pthreads/pthread_cond.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'components/pthreads/pthread_cond.c') 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); + -- cgit v1.3.1