-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed threading issue using a thread pool #37
Conversation
Looks good now, but needs squashing. I'll test on Windows later and report back. |
bf0f73f
to
d6b148b
Compare
Just squashed the pull request. |
I just realized - since |
Do you want me to do it? |
If you're up for it that'd be great. I haven't verified it locally but I see no reason why it wouldn't work. |
I made the thread pool global a the level of the IsoWriter. Maybe having it in the main is not nice. |
Yep, that's a better idea than making it global-global indeed. Conceptually it also makes sense - if multiple ISO writers ever coexist in the same process, it would make sense for their workers not to fight for the thread pool. |
f35fd06
to
03028d7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked on Windows, everything works as expected.
Great! I guess you are going to merge the pull request, then. |
I would if I could - I have no merge rights in this repository, only @Lameguy64 can merge. |
@marco-calautti For the time being I merged this PR to the I had to rebase your changes manually so git history might be imperfect - but you're welcome to open the same PR against the fork. In case you're interested, I created a new |
I see the develop-old is some commits behind the master of this repo. Is that fine? |
Yes, the master of this repo contains some changes we've not "downstreamed" yet. |
@Lameguy64 any news in merging this? |
I don't think we're going to get an answer anytime soon, to be fair. |
This addresses Issue #36
I tested it on Linux using GCC, and everything seems to be working fine. Needs testing on Windows with VC++.