mirror of
https://github.com/valitydev/yandex-tank.git
synced 2024-11-06 10:25:17 +00:00
use threads instead of processes
This commit is contained in:
parent
a0422a1861
commit
e3a6b0c062
@ -116,7 +116,7 @@ class BFGShooter(object):
|
||||
|
||||
def _worker(self):
|
||||
self.log.info("Started shooter process with %s threads..." % self.threads)
|
||||
pool = [mp.Process(target=self._thread_worker) for i in xrange(0, self.threads)]
|
||||
pool = [th.Thread(target=self._thread_worker) for i in xrange(0, self.threads)]
|
||||
map(lambda x: x.start(), pool)
|
||||
map(lambda x: x.join(), pool)
|
||||
self.log.info("Exiting shooter process...")
|
||||
|
Loading…
Reference in New Issue
Block a user