Skip to content

Commit 37e1463

Browse files
committed
Merge branch 'develop' of https://github.com/cfhamlet/os-3m-engine into develop
2 parents 2fcb586 + 8b7f37c commit 37e1463

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ matrix:
66
env: TOXENV=py27
77
- python: 3.6
88
env: TOXENV=py36
9+
- python: pypy
10+
env: TOXENV=pypy
11+
- python: pypy3
12+
env: TOXENV=pypy3
913
- env: TOXENV=coverage
1014
install:
1115
- pip install -U pip tox codecov

src/os_3m_engine/core/othread.py

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

6767
def start(self):
68+
list(map(lambda t: t.start(), self._threads))
6869
while not self._start_trigger.wait(0.1):
6970
if self._start_trigger.is_set():
7071
break
71-
list(map(lambda t: t.start(), self._threads))
72+
7273

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

0 commit comments

Comments
 (0)