Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:51

0001 /*
0002  * Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved.
0003  * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved
0004  *
0005  * Licensed under the Apache License 2.0 (the "License").  You may not use
0006  * this file except in compliance with the License.  You can obtain a copy
0007  * in the file LICENSE in the source distribution or at
0008  * https://www.openssl.org/source/license.html
0009  */
0010 
0011 #ifndef OPENSSL_THREAD_H
0012 # define OPENSSL_THREAD_H
0013 
0014 # define OSSL_THREAD_SUPPORT_FLAG_THREAD_POOL (1U<<0)
0015 # define OSSL_THREAD_SUPPORT_FLAG_DEFAULT_SPAWN (1U<<1)
0016 
0017 # include <openssl/types.h>
0018 
0019 # ifdef  __cplusplus
0020 extern "C" {
0021 # endif
0022 
0023 uint32_t OSSL_get_thread_support_flags(void);
0024 int OSSL_set_max_threads(OSSL_LIB_CTX *ctx, uint64_t max_threads);
0025 uint64_t OSSL_get_max_threads(OSSL_LIB_CTX *ctx);
0026 
0027 # ifdef  __cplusplus
0028 }
0029 # endif
0030 
0031 #endif /* OPENSSL_THREAD_H */