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

Method acquire_resources

benchmarks/tbb/governor.cpp:71–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void governor::acquire_resources () {
72#if USE_PTHREAD
73 int status = theTLS.create(auto_terminate);
74#else
75 int status = theTLS.create();
76#endif
77 if( status )
78 handle_perror(status, "TBB failed to initialize task scheduler TLS\n");
79 is_speculation_enabled = cpu_has_speculation();
80}
81
82void governor::release_resources () {
83 theRMLServerFactory.close();

Callers

nothing calls this directly

Calls 3

handle_perrorFunction · 0.85
cpu_has_speculationFunction · 0.85
createMethod · 0.45

Tested by

no test coverage detected