Update parallel processing api (#246)

* Remove m.workers, add run(procs=), update docs

* Update docs
This commit is contained in:
Mark Mossberg
2017-05-10 19:44:55 -04:00
committed by GitHub
parent e4a4916597
commit a10b7bae29
6 changed files with 13 additions and 25 deletions
+1 -2
View File
@@ -17,13 +17,12 @@ if __name__ == '__main__':
sys.exit(2)
m = Manticore(sys.argv[1])
m.workers = 3
m.context['count'] = 0
@m.hook(None)
def explore(state):
m.context['count'] += 1
m.run()
m.run(procs=3)
print "Executed ", m.context['count'], " instructions."
@@ -58,5 +58,4 @@ def hook(state):
# We found the flag, no need to continue execution
m.terminate()
m.workers = 10
m.run()
m.run(procs=10)