| 229 | */ |
| 230 | template <typename Q> |
| 231 | size_t try_lock( Q const& hint ) |
| 232 | { |
| 233 | size_t nCell = m_SelectCellPolicy( hint, size()); |
| 234 | assert( nCell < size()); |
| 235 | if ( m_arrLocks[nCell].try_lock()) |
| 236 | return nCell; |
| 237 | return c_nUnspecifiedCell; |
| 238 | } |
| 239 | |
| 240 | /// Unlock the lock specified by index \p nCell |
| 241 | void unlock( size_t nCell ) |
no test coverage detected