Пример #1
0
IMPLEMENTATION [mp]:

PRIVATE inline
void NO_INSTRUMENT
Switch_lock::clear_lock_owner()
{
  atomic_mp_and(&_lock_owner, 1);
}
Пример #2
0
 void atomic_clear_bit(unsigned long bit)
 {
   unsigned long idx = bit / Bpl;
   unsigned long b   = bit % Bpl;
   atomic_mp_and(&_bits()[idx], ~(1UL << b));
 }
Пример #3
0
 void atomic_clear_bit(unsigned long bit)
 {
   atomic_mp_and(&_bits[0], ~(1UL << bit));
 }