MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / init

Method init

extern/libcds/src/thread_data.cpp:15–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 CDS_EXPORT_API size_t ThreadData::s_nProcCount = 1;
14
15 CDS_EXPORT_API void ThreadData::init()
16 {
17 if ( m_nAttachCount++ == 0 ) {
18 if ( cds::gc::HP::isUsed())
19 cds::gc::hp::smr::attach_thread();
20 if ( cds::gc::DHP::isUsed())
21 cds::gc::dhp::smr::attach_thread();
22
23 if ( cds::urcu::details::singleton<cds::urcu::general_instant_tag>::isUsed())
24 m_pGPIRCU = cds::urcu::details::singleton<cds::urcu::general_instant_tag>::attach_thread();
25 if ( cds::urcu::details::singleton<cds::urcu::general_buffered_tag>::isUsed())
26 m_pGPBRCU = cds::urcu::details::singleton<cds::urcu::general_buffered_tag>::attach_thread();
27 if ( cds::urcu::details::singleton<cds::urcu::general_threaded_tag>::isUsed())
28 m_pGPTRCU = cds::urcu::details::singleton<cds::urcu::general_threaded_tag>::attach_thread();
29#ifdef CDS_URCU_SIGNAL_HANDLING_ENABLED
30 if ( cds::urcu::details::singleton<cds::urcu::signal_buffered_tag>::isUsed())
31 m_pSHBRCU = cds::urcu::details::singleton<cds::urcu::signal_buffered_tag>::attach_thread();
32#endif
33 }
34 }
35
36 CDS_EXPORT_API bool ThreadData::fini()
37 {

Callers 15

alloc_thread_dataMethod · 0.45
maybe_schedule_keyMethod · 0.45
encryptMethod · 0.45
eax_vectorsMethod · 0.45
pkcs_1_mgf1Function · 0.45
pkcs_1_pss_decodeFunction · 0.45
pkcs_1_pss_encodeFunction · 0.45
hash_memory_multiFunction · 0.45
hash_filehandleFunction · 0.45
hash_memoryFunction · 0.45
yarrow_add_entropyFunction · 0.45
_pkcs_5_alg1_commonFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected