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

Method create_rml_server

benchmarks/tbb/governor.cpp:94–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94rml::tbb_server* governor::create_rml_server ( rml::tbb_client& client ) {
95 rml::tbb_server* server = NULL;
96 if( !UsePrivateRML ) {
97 ::rml::factory::status_type status = theRMLServerFactory.make_server( server, client );
98 if( status != ::rml::factory::st_success ) {
99 UsePrivateRML = true;
100 runtime_warning( "rml::tbb_factory::make_server failed with status %x, falling back on private rml", status );
101 }
102 }
103 if ( !server ) {
104 __TBB_ASSERT( UsePrivateRML, NULL );
105 server = rml::make_private_server( client );
106 }
107 __TBB_ASSERT( server, "Failed to create RML server" );
108 return server;
109}
110
111void governor::sign_on(generic_scheduler* s) {
112 __TBB_ASSERT( !theTLS.get(), NULL );

Callers

nothing calls this directly

Calls 1

make_private_serverFunction · 0.85

Tested by

no test coverage detected