VirtualBox

source: vbox/trunk/src/libs/curl-8.7.1/lib/vtls/mbedtls_threadlock.h@ 104773

Last change on this file since 104773 was 104083, checked in by vboxsync, 9 months ago

curl-8.7.1: Applied and adjusted our curl changes to 8.4.0. bugref:10639

  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1#ifndef HEADER_CURL_MBEDTLS_THREADLOCK_H
2#define HEADER_CURL_MBEDTLS_THREADLOCK_H
3/***************************************************************************
4 * _ _ ____ _
5 * Project ___| | | | _ \| |
6 * / __| | | | |_) | |
7 * | (__| |_| | _ <| |___
8 * \___|\___/|_| \_\_____|
9 *
10 * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
11 * Copyright (C) Hoi-Ho Chan, <hoiho.chan@gmail.com>
12 *
13 * This software is licensed as described in the file COPYING, which
14 * you should have received as part of this distribution. The terms
15 * are also available at https://curl.se/docs/copyright.html.
16 *
17 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
18 * copies of the Software, and permit persons to whom the Software is
19 * furnished to do so, under the terms of the COPYING file.
20 *
21 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
22 * KIND, either express or implied.
23 *
24 * SPDX-License-Identifier: curl
25 *
26 ***************************************************************************/
27#include "curl_setup.h"
28
29#ifdef USE_MBEDTLS
30
31#if (defined(USE_THREADS_POSIX) && defined(HAVE_PTHREAD_H)) || \
32 defined(_WIN32)
33
34int Curl_mbedtlsthreadlock_thread_setup(void);
35int Curl_mbedtlsthreadlock_thread_cleanup(void);
36int Curl_mbedtlsthreadlock_lock_function(int n);
37int Curl_mbedtlsthreadlock_unlock_function(int n);
38
39#else
40
41#define Curl_mbedtlsthreadlock_thread_setup() 1
42#define Curl_mbedtlsthreadlock_thread_cleanup() 1
43#define Curl_mbedtlsthreadlock_lock_function(x) 1
44#define Curl_mbedtlsthreadlock_unlock_function(x) 1
45
46#endif /* (USE_THREADS_POSIX && HAVE_PTHREAD_H) || _WIN32 */
47
48#endif /* USE_MBEDTLS */
49
50#endif /* HEADER_CURL_MBEDTLS_THREADLOCK_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette