| 69 | } |
| 70 | |
| 71 | void 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 | |
| 82 | void governor::release_resources () { |
| 83 | theRMLServerFactory.close(); |
nothing calls this directly
no test coverage detected