VirtualBox

source: vbox/trunk/src/libs/openssl-3.3.2/include/internal/rcu.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.1 KB
 
1/*
2 * Copyright 2023-2024 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_RCU_H
11# define OPENSSL_RCU_H
12# pragma once
13
14#include "crypto/context.h"
15
16typedef void (*rcu_cb_fn)(void *data);
17
18typedef struct rcu_lock_st CRYPTO_RCU_LOCK;
19
20CRYPTO_RCU_LOCK *ossl_rcu_lock_new(int num_writers, OSSL_LIB_CTX *ctx);
21void ossl_rcu_lock_free(CRYPTO_RCU_LOCK *lock);
22void ossl_rcu_read_lock(CRYPTO_RCU_LOCK *lock);
23void ossl_rcu_write_lock(CRYPTO_RCU_LOCK *lock);
24void ossl_rcu_write_unlock(CRYPTO_RCU_LOCK *lock);
25void ossl_rcu_read_unlock(CRYPTO_RCU_LOCK *lock);
26void ossl_synchronize_rcu(CRYPTO_RCU_LOCK *lock);
27int ossl_rcu_call(CRYPTO_RCU_LOCK *lock, rcu_cb_fn cb, void *data);
28void *ossl_rcu_uptr_deref(void **p);
29void ossl_rcu_assign_uptr(void **p, void **v);
30#define ossl_rcu_deref(p) ossl_rcu_uptr_deref((void **)p)
31#define ossl_rcu_assign_ptr(p,v) ossl_rcu_assign_uptr((void **)p, (void **)v)
32
33#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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