summaryrefslogtreecommitdiff
path: root/components/pthreads/pthread_mutex.c
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-11-23 02:40:32 +0000
committer[email protected] <[email protected]>2012-11-23 02:40:32 +0000
commit44eaae8c80cfd320bb81fce14aec60f207fb240f (patch)
tree825b852c6eccebd9fd655271ee3b94d5cb8ccd6a /components/pthreads/pthread_mutex.c
parentffbd0a167379c3fe4c31a4d0f65d7c3adfd4f16a (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_mutex.c')
-rw-r--r--components/pthreads/pthread_mutex.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/components/pthreads/pthread_mutex.c b/components/pthreads/pthread_mutex.c
index 3aeaf447b3..486b389b1c 100644
--- a/components/pthreads/pthread_mutex.c
+++ b/components/pthreads/pthread_mutex.c
@@ -16,6 +16,7 @@ int pthread_mutexattr_init(pthread_mutexattr_t *attr)
return EINVAL;
}
+RTM_EXPORT(pthread_mutexattr_init);
int pthread_mutexattr_destroy(pthread_mutexattr_t *attr)
{
@@ -27,6 +28,7 @@ int pthread_mutexattr_destroy(pthread_mutexattr_t *attr)
return EINVAL;
}
+RTM_EXPORT(pthread_mutexattr_destroy);
int pthread_mutexattr_gettype(const pthread_mutexattr_t *attr, int *type)
{
@@ -43,6 +45,7 @@ int pthread_mutexattr_gettype(const pthread_mutexattr_t *attr, int *type)
return EINVAL;
}
+RTM_EXPORT(pthread_mutexattr_gettype);
int pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type)
{
@@ -55,6 +58,7 @@ int pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type)
return EINVAL;
}
+RTM_EXPORT(pthread_mutexattr_settype);
int pthread_mutexattr_setpshared(pthread_mutexattr_t *attr, int pshared)
{
@@ -73,6 +77,7 @@ int pthread_mutexattr_setpshared(pthread_mutexattr_t *attr, int pshared)
return EINVAL;
}
+RTM_EXPORT(pthread_mutexattr_setpshared);
int pthread_mutexattr_getpshared(pthread_mutexattr_t *attr, int *pshared)
{
@@ -82,6 +87,7 @@ int pthread_mutexattr_getpshared(pthread_mutexattr_t *attr, int *pshared)
: PTHREAD_PROCESS_PRIVATE;
return 0;
}
+RTM_EXPORT(pthread_mutexattr_getpshared);
int pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *attr)
{
@@ -105,6 +111,7 @@ int pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *attr)
return 0;
}
+RTM_EXPORT(pthread_mutex_init);
int pthread_mutex_destroy(pthread_mutex_t *mutex)
{
@@ -118,6 +125,7 @@ int pthread_mutex_destroy(pthread_mutex_t *mutex)
return 0;
}
+RTM_EXPORT(pthread_mutex_destroy);
int pthread_mutex_lock(pthread_mutex_t *mutex)
{
@@ -146,6 +154,7 @@ int pthread_mutex_lock(pthread_mutex_t *mutex)
return EINVAL;
}
+RTM_EXPORT(pthread_mutex_lock);
int pthread_mutex_unlock(pthread_mutex_t *mutex)
{
@@ -175,6 +184,7 @@ int pthread_mutex_unlock(pthread_mutex_t *mutex)
return EINVAL;
}
+RTM_EXPORT(pthread_mutex_unlock);
int pthread_mutex_trylock(pthread_mutex_t *mutex)
{
@@ -192,4 +202,5 @@ int pthread_mutex_trylock(pthread_mutex_t *mutex)
return EBUSY;
}
+RTM_EXPORT(pthread_mutex_trylock);