MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / join

Method join

tools/python-3.11.9-amd64/Lib/queue.py:79–90  ·  view source on GitHub ↗

Blocks until all items in the Queue have been gotten and processed. The count of unfinished tasks goes up whenever an item is added to the queue. The count goes down whenever a consumer thread calls task_done() to indicate the item was retrieved and all work on it is com

(self)

Source from the content-addressed store, hash-verified

77 self.unfinished_tasks = unfinished
78
79 def join(self):
80 '''Blocks until all items in the Queue have been gotten and processed.
81
82 The count of unfinished tasks goes up whenever an item is added to the
83 queue. The count goes down whenever a consumer thread calls task_done()
84 to indicate the item was retrieved and all work on it is complete.
85
86 When the count of unfinished tasks drops to zero, join() unblocks.
87 '''
88 with self.all_tasks_done:
89 while self.unfinished_tasks:
90 self.all_tasks_done.wait()
91
92 def qsize(self):
93 '''Return the approximate size of the queue (not reliable!).'''

Callers 15

uidMethod · 0.45
_commandMethod · 0.45
_dump_urMethod · 0.45
__repr__Method · 0.45
__repr__Method · 0.45
__seqToREMethod · 0.45
_formatFunction · 0.45
get_source_segmentFunction · 0.45
visitMethod · 0.45
_str_literal_helperMethod · 0.45
visit_JoinedStrMethod · 0.45
_fwalkFunction · 0.45

Calls 1

waitMethod · 0.45

Tested by 12

_module_relative_pathFunction · 0.36
parseMethod · 0.36
_parse_exampleMethod · 0.36
_failure_headerMethod · 0.36
__runMethod · 0.36
check_outputMethod · 0.36
output_differenceMethod · 0.36
format_failureMethod · 0.36
__repr__Method · 0.36
idMethod · 0.36
script_from_examplesFunction · 0.36
mainFunction · 0.36