polarssl_threadlock.h
Go to the documentation of this file.
00001 #ifndef HEADER_CURL_POLARSSL_THREADLOCK_H
00002 #define HEADER_CURL_POLARSSL_THREADLOCK_H
00003 /***************************************************************************
00004  *                                  _   _ ____  _
00005  *  Project                     ___| | | |  _ \| |
00006  *                             / __| | | | |_) | |
00007  *                            | (__| |_| |  _ <| |___
00008  *                             \___|\___/|_| \_\_____|
00009  *
00010  * Copyright (C) 2013-2015, Daniel Stenberg, <daniel@haxx.se>, et al.
00011  * Copyright (C) 2010, Hoi-Ho Chan, <hoiho.chan@gmail.com>
00012  *
00013  * This software is licensed as described in the file COPYING, which
00014  * you should have received as part of this distribution. The terms
00015  * are also available at https://curl.haxx.se/docs/copyright.html.
00016  *
00017  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
00018  * copies of the Software, and permit persons to whom the Software is
00019  * furnished to do so, under the terms of the COPYING file.
00020  *
00021  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
00022  * KIND, either express or implied.
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 /* USE_THREADS_POSIX || USE_THREADS_WIN32 */
00050 
00051 #endif /* USE_POLARSSL */
00052 
00053 #endif /* HEADER_CURL_POLARSSL_THREADLOCK_H */


rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:06