MCPcopy Index your code
hub / github.com/python/cpython / newtask

Method newtask

Lib/test/test_thread.py:44–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

42class ThreadRunningTests(BasicThreadTest):
43
44 def newtask(self):
45 with self.running_mutex:
46 self.next_ident += 1
47 verbose_print("creating task %s" % self.next_ident)
48 thread.start_new_thread(self.task, (self.next_ident,))
49 self.created += 1
50 self.running += 1
51
52 def task(self, ident):
53 with self.random_mutex:

Callers 2

test_starting_threadsMethod · 0.95

Calls 1

verbose_printFunction · 0.70

Tested by

no test coverage detected