Searched refs:Lock (Results 1 – 25 of 26) sorted by relevance
12
54 self.assertTrue(self._lock.Lock())58 self.assertTrue(self._lock.Lock(timeout_secs=0))70 self.assertTrue(lock.Lock(timeout_secs=0))72 self.assertFalse(self._lock.Lock(timeout_secs=0))85 self.assertFalse(self._lock.Lock(timeout_secs=1))
88 def Lock(self, timeout_secs=_DEFAULT_TIMEOUT_SECS): member in LocalInstanceLock160 if not self.Lock(timeout_secs):
41 mock_lock.Lock.return_value = True58 mock_lock.Lock.return_value = False69 mock_lock.Lock.return_value = True90 mock_lock.Lock.return_value = True109 mock_lock.Lock.return_value = False124 mock_lock.Lock.return_value = True139 mock_lock.Lock.return_value = True153 mock_lock.Lock.assert_called_once()157 mock_lock.Lock.return_value = False
139 if not ins_lock.Lock():175 if not lock.Lock():211 if not ins_lock.Lock():
160 mock_lock.Lock.return_value = True172 self.assertEqual(2, mock_lock.Lock.call_count)176 mock_lock.Lock.reset_mock()177 mock_lock.Lock.return_value = False182 self.assertEqual(2, mock_lock.Lock.call_count)185 mock_lock.Lock.reset_mock()186 mock_lock.Lock.return_value = True190 self.assertEqual(2, mock_lock.Lock.call_count)
154 if not ins_lock.Lock():
30 import java.util.concurrent.locks.Lock;45 final Lock lock = new ReentrantLock(); in testPostCommandEvent_multipleThread()
39 self._mock_lock.Lock.return_value = True208 self._mock_lock.Lock.assert_called_once()256 self._mock_lock.Lock.assert_called_once()300 self._mock_lock.Lock.assert_called_once()331 self._mock_lock.Lock.assert_not_called()
210 mock_lock.Lock.return_value = True218 mock_lock.Lock.assert_not_called()227 mock_lock.Lock.assert_called_once()
146 if ins_lock.Lock():
222 if ins_lock.Lock():
43 Lock contention93 Lock contention
55 self._ticket_lock = threading.Lock()
57 self._ticket_lock = threading.Lock()
111 self._listen_for_port_lock = threading.Lock()
75 self._terminate_lock = threading.Lock()
155 self._lock = threading.Lock()
20 self._subscription_lock = threading.Lock()
74 self._pending_events_lock = threading.Lock()
39 lock = threading.Lock()74 getattr(current_function, locks_dict_attr_name)[name] = threading.Lock()
94 __log_file_lock = threading.Lock()
118 self._pcap_stop_lock = threading.Lock()
140 self.lock = threading.Lock()
263 __log_file_lock = threading.Lock()
78 self._lock = threading.Lock()