Skip to content

Commit 8b7f37c

Browse files
authored
fix: start thread
1 parent 586de2b commit 8b7f37c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/os_3m_engine/core/othread.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,11 @@ def thread_num(self):
6464
return len(self._threads)
6565

6666
def start(self):
67+
list(map(lambda t: t.start(), self._threads))
6768
while not self._start_trigger.wait(0.1):
6869
if self._start_trigger.is_set():
6970
break
70-
list(map(lambda t: t.start(), self._threads))
71+
7172

7273
def setDaemon(self, daemonic):
7374
list(map(lambda t: t.setDaemon(daemonic), self._threads))

0 commit comments

Comments
 (0)