MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / init_concmon_module

Function init_concmon_module

benchmarks/tbb/semaphore.cpp:64–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62};
63
64inline void init_concmon_module()
65{
66 __TBB_ASSERT( (uintptr_t)__TBB_init_binsem==(uintptr_t)&init_binsem_using_event, NULL );
67 if( dynamic_link( "Kernel32.dll", SRWLLinkTable, sizeof(SRWLLinkTable)/sizeof(dynamic_link_descriptor) ) ) {
68 __TBB_ASSERT( (uintptr_t)__TBB_init_binsem!=(uintptr_t)&init_binsem_using_event, NULL );
69 __TBB_ASSERT( (uintptr_t)__TBB_acquire_binsem!=(uintptr_t)&acquire_binsem_using_event, NULL );
70 __TBB_ASSERT( (uintptr_t)__TBB_release_binsem!=(uintptr_t)&release_binsem_using_event, NULL );
71 }
72}
73
74binary_semaphore::binary_semaphore() {
75 atomic_do_once( &init_concmon_module, concmon_module_inited );

Callers

nothing calls this directly

Calls 1

dynamic_linkFunction · 0.85

Tested by

no test coverage detected