alex-petrenko / megaverse

High-throughput simulation platform for Artificial Intelligence reseach
https://www.megaverse.info
MIT License
219 stars 20 forks source link

Thread pool #6

Closed erikwijmans closed 3 years ago

erikwijmans commented 3 years ago

I liked the comments you left on the PR, so I made them :). Moving the loop into a function also made it feel natural to have the main thread add 1 to numReady so that logic changed a little bit