Commit 2de8a814 authored by Otavio Rodolfo Piske's avatar Otavio Rodolfo Piske

Use export declaration for the thread-related functions otherwise test2 fail to…

Use export declaration for the thread-related functions otherwise test2 fail to link with project libraries
Signed-off-by: 's avatarOtavio Rodolfo Piske <opiske@redhat.com>
parent 65332175
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
* Ian Craggs, Allan Stockdill-Mander - async client updates * Ian Craggs, Allan Stockdill-Mander - async client updates
* Ian Craggs - fix for bug #420851 * Ian Craggs - fix for bug #420851
*******************************************************************************/ *******************************************************************************/
#include "MQTTClient.h"
#if !defined(THREAD_H) #if !defined(THREAD_H)
#define THREAD_H #define THREAD_H
...@@ -46,14 +47,14 @@ ...@@ -46,14 +47,14 @@
int Thread_destroy_cond(cond_type); int Thread_destroy_cond(cond_type);
#endif #endif
thread_type Thread_start(thread_fn, void*); DLLExport thread_type Thread_start(thread_fn, void*);
mutex_type Thread_create_mutex(); DLLExport mutex_type Thread_create_mutex();
int Thread_lock_mutex(mutex_type); DLLExport int Thread_lock_mutex(mutex_type);
int Thread_unlock_mutex(mutex_type); DLLExport int Thread_unlock_mutex(mutex_type);
void Thread_destroy_mutex(mutex_type); void Thread_destroy_mutex(mutex_type);
thread_id_type Thread_getid(); DLLExport thread_id_type Thread_getid();
sem_type Thread_create_sem(); sem_type Thread_create_sem();
int Thread_wait_sem(sem_type sem, int timeout); int Thread_wait_sem(sem_type sem, int timeout);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment