Go to the documentation of this file.00001 #ifndef HEADER_CURL_POLARSSL_THREADLOCK_H
00002 #define HEADER_CURL_POLARSSL_THREADLOCK_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include "curl_setup.h"
00026
00027 #if (defined USE_POLARSSL) || (defined USE_MBEDTLS)
00028
00029 #if defined(USE_THREADS_POSIX)
00030 # define POLARSSL_MUTEX_T pthread_mutex_t
00031 #elif defined(USE_THREADS_WIN32)
00032 # define POLARSSL_MUTEX_T HANDLE
00033 #endif
00034
00035 #if defined(USE_THREADS_POSIX) || defined(USE_THREADS_WIN32)
00036
00037 int Curl_polarsslthreadlock_thread_setup(void);
00038 int Curl_polarsslthreadlock_thread_cleanup(void);
00039 int Curl_polarsslthreadlock_lock_function(int n);
00040 int Curl_polarsslthreadlock_unlock_function(int n);
00041
00042 #else
00043
00044 #define Curl_polarsslthreadlock_thread_setup() 1
00045 #define Curl_polarsslthreadlock_thread_cleanup() 1
00046 #define Curl_polarsslthreadlock_lock_function(x) 1
00047 #define Curl_polarsslthreadlock_unlock_function(x) 1
00048
00049 #endif
00050
00051 #endif
00052
00053 #endif