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

Method add_ref

benchmarks/tbb/tbb_main.cpp:122–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120//------------------------------------------------------------------------
121
122void __TBB_InitOnce::add_ref() {
123 if( ++count==1 )
124 governor::acquire_resources();
125}
126
127void __TBB_InitOnce::remove_ref() {
128 int k = --count;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected