| 21 | } |
| 22 | |
| 23 | std::optional<TbbThreadMutex::LockGuard> TbbThreadMutex::tryLock() |
| 24 | { |
| 25 | if ( std::this_thread::get_id() == id_ && !lockFlag_.test_and_set() ) |
| 26 | return LockGuard { *this }; |
| 27 | return {}; |
| 28 | } |
| 29 | |
| 30 | } // namespace MR |
no outgoing calls
no test coverage detected