| 92 | } |
| 93 | |
| 94 | rml::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 | |
| 111 | void governor::sign_on(generic_scheduler* s) { |
| 112 | __TBB_ASSERT( !theTLS.get(), NULL ); |
nothing calls this directly
no test coverage detected