VirtualBox

source: vbox/trunk/src/libs/openssl-3.3.2/include/internal/thread.h@ 108403

最後變更 在這個檔案從108403是 108206,由 vboxsync 提交於 5 週 前

openssl-3.3.2: Exported all files to OSE and removed .scm-settings ​bugref:10757

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1.3 KB
 
1/*
2 * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License 2.0 (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
8 */
9
10#ifndef OPENSSL_INTERNAL_THREAD_H
11# define OPENSSL_INTERNAL_THREAD_H
12# include <openssl/configuration.h>
13# include <internal/thread_arch.h>
14# include <openssl/e_os2.h>
15# include <openssl/types.h>
16# include <internal/cryptlib.h>
17# include "crypto/context.h"
18
19void *ossl_crypto_thread_start(OSSL_LIB_CTX *ctx, CRYPTO_THREAD_ROUTINE start,
20 void *data);
21int ossl_crypto_thread_join(void *task, CRYPTO_THREAD_RETVAL *retval);
22int ossl_crypto_thread_clean(void *vhandle);
23uint64_t ossl_get_avail_threads(OSSL_LIB_CTX *ctx);
24
25# if defined(OPENSSL_THREADS)
26
27# define OSSL_LIB_CTX_GET_THREADS(CTX) \
28 ossl_lib_ctx_get_data(CTX, OSSL_LIB_CTX_THREAD_INDEX);
29
30typedef struct openssl_threads_st {
31 uint64_t max_threads;
32 uint64_t active_threads;
33 CRYPTO_MUTEX *lock;
34 CRYPTO_CONDVAR *cond_finished;
35} OSSL_LIB_CTX_THREADS;
36
37# endif /* defined(OPENSSL_THREADS) */
38
39#endif /* OPENSSL_INTERNAL_THREAD_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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