コード例 #1
0
 def test_LockType(self):
     # Make sure _thread.LockType is the same type as _thread.allocate_locke()
     self.assertIsInstance(
         _thread.allocate_lock(),
         _thread.LockType,
         "_thread.LockType is not an instance of what " "is returned by _thread.allocate_lock()",
     )
コード例 #2
0
 def setUp(self):
     # Create a lock
     self.lock = _thread.allocate_lock()
コード例 #3
0
 def test_LockType(self):
     self.assertIsInstance(
         _thread.allocate_lock(), _thread.LockType,
         "_thread.LockType is not an instance of what "
         "is returned by _thread.allocate_lock()")
コード例 #4
0
 def setUp(self):
     # Create a lock
     self.lock = _thread.allocate_lock()
コード例 #5
0
 def __init__(self, contents=None):
   self.config_ = []
   self.lazy_init_lock_ = thread.allocate_lock()
   if contents is not None: self.MergeFromString(contents)
コード例 #6
0
 def __init__(self, contents=None):
     self.lazy_init_lock_ = thread.allocate_lock()
     if contents is not None: self.MergeFromString(contents)
コード例 #7
0
 def __init__(self, contents=None):
   self.result_ = QueryResult()
   self.entity_group_key_ = Reference()
   self.lazy_init_lock_ = thread.allocate_lock()
   if contents is not None: self.MergeFromString(contents)
コード例 #8
0
 def test_LockType(self):
     #Make sure _thread.LockType is the same type as _thread.allocate_locke()
     self.assertIsInstance(
         _thread.allocate_lock(), _thread.LockType,
         "_thread.LockType is not an instance of what "
         "is returned by _thread.allocate_lock()")
コード例 #9
0
 def test_LockType(self):
     #Make sure _thread.LockType is the same type as _thread.allocate_locke()
     self.assertTrue(isinstance(_thread.allocate_lock(), _thread.LockType),
                     "_thread.LockType is not an instance of what is "
                      "returned by _thread.allocate_lock()")
コード例 #10
0
 def __init__(self, contents=None):
     self.result_ = QueryResult()
     self.entity_group_key_ = Reference()
     self.lazy_init_lock_ = thread.allocate_lock()
     if contents is not None: self.MergeFromString(contents)
コード例 #11
0
 def setUp(self):
     self.lock = _thread.allocate_lock()
コード例 #12
0
ファイル: test_dummy_thread.py プロジェクト: 3lnc/cpython
 def test_LockType(self):
     self.assertIsInstance(_thread.allocate_lock(), _thread.LockType,
                           "_thread.LockType is not an instance of what "
                           "is returned by _thread.allocate_lock()")
コード例 #13
0
ファイル: nodes.py プロジェクト: xxoolm/Ryven
 def update_event(self, inp=-1):
     self.set_output_val(0, _dummy_thread.allocate_lock())