summaryrefslogtreecommitdiffstats
path: root/src/thread.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2021-08-30 18:16:57 +0200
committerGravatar Nikias Bassen2021-08-30 18:16:57 +0200
commitda36666192ee5ff75bb3bc9d182d2765dff8e151 (patch)
tree1e6de64c2d9e9977de534a50c14fdcdd7d2e46b3 /src/thread.c
parentde5758a936e31789f3d40abe5b471b03824f9aa3 (diff)
downloadlibimobiledevice-glue-da36666192ee5ff75bb3bc9d182d2765dff8e151.tar.gz
libimobiledevice-glue-da36666192ee5ff75bb3bc9d182d2765dff8e151.tar.bz2
thread: Make sure cond_* API is publicly exported
Diffstat (limited to 'src/thread.c')
-rw-r--r--src/thread.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/thread.c b/src/thread.c
index 7dc968c..6efacec 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -142,7 +142,7 @@ LIBIMOBILEDEVICE_GLUE_API void thread_once(thread_once_t *once_control, void (*i
#endif
}
-void cond_init(cond_t* cond)
+LIBIMOBILEDEVICE_GLUE_API void cond_init(cond_t* cond)
{
#ifdef WIN32
cond->sem = CreateSemaphore(NULL, 0, 32767, NULL);
@@ -151,7 +151,7 @@ void cond_init(cond_t* cond)
#endif
}
-void cond_destroy(cond_t* cond)
+LIBIMOBILEDEVICE_GLUE_API void cond_destroy(cond_t* cond)
{
#ifdef WIN32
CloseHandle(cond->sem);
@@ -160,7 +160,7 @@ void cond_destroy(cond_t* cond)
#endif
}
-int cond_signal(cond_t* cond)
+LIBIMOBILEDEVICE_GLUE_API int cond_signal(cond_t* cond)
{
#ifdef WIN32
int result = 0;
@@ -173,7 +173,7 @@ int cond_signal(cond_t* cond)
#endif
}
-int cond_wait(cond_t* cond, mutex_t* mutex)
+LIBIMOBILEDEVICE_GLUE_API int cond_wait(cond_t* cond, mutex_t* mutex)
{
#ifdef WIN32
mutex_unlock(mutex);
@@ -189,7 +189,7 @@ int cond_wait(cond_t* cond, mutex_t* mutex)
#endif
}
-int cond_wait_timeout(cond_t* cond, mutex_t* mutex, unsigned int timeout_ms)
+LIBIMOBILEDEVICE_GLUE_API int cond_wait_timeout(cond_t* cond, mutex_t* mutex, unsigned int timeout_ms)
{
#ifdef WIN32
mutex_unlock(mutex);