Lines Matching refs:thread
5 thread = support.import_module('thread') variable
16 _print_mutex = thread.allocate_lock()
29 self.done_mutex = thread.allocate_lock()
31 self.running_mutex = thread.allocate_lock()
32 self.random_mutex = thread.allocate_lock()
47 thread.start_new_thread(self.task, (self.next_ident,))
73 self.assertEqual(thread.stack_size(), 0, "initial stack size is not 0")
75 thread.stack_size(0)
76 self.assertEqual(thread.stack_size(), 0, "stack_size not reset to default")
81 thread.stack_size(4096)
85 except thread.error:
91 thread.stack_size(tss)
92 self.assertEqual(thread.stack_size(), tss, fail_msg % tss)
107 thread.stack_size(0)
111 orig = thread._count()
112 mut = thread.allocate_lock()
122 thread.start_new_thread(task, ())
125 self.assertEqual(thread._count(), orig + 1)
136 self.assertEqual(thread._count(), orig)
149 c = thread._count()
150 started = thread.allocate_lock()
156 thread.start_new_thread(task, ())
165 self.checkin_mutex = thread.allocate_lock()
166 self.checkout_mutex = thread.allocate_lock()
193 thread.start_new_thread(self.task2, (i,))
225 locktype = thread.allocate_lock
258 thread.start_new_thread(thread1, ())