Lock the bin we point to, if not already locked.
| 193 | |
| 194 | /// Lock the bin we point to, if not already locked. |
| 195 | void lock () { |
| 196 | if (m_bin >= 0 && !m_locked) { |
| 197 | m_umc->m_bins[m_bin].lock(); |
| 198 | m_locked = true; |
| 199 | } |
| 200 | } |
| 201 | /// Unlock the bin we point to, if locked. |
| 202 | void unlock () { |
| 203 | if (m_bin >= 0 && m_locked) { |