Re: Thread pool bug
Larry Gritz <[email protected]> Wed, 28 Oct 2015 10:44:54 -0700
| Newsgroups | gmane.comp.video.openexr.devel |
|---|---|
| Message-ID | <[email protected]> |
I believe the following should fix this: https://github.com/openexr/openexr/pull/170 > On Oct 27, 2015, at 2:08 PM, Larry Gritz <[email protected]> wrote: > > https://github.com/openexr/openexr/blob/91015147e5a6a1914bcb16b12886aede9e1ed065/IlmBase/IlmThread/IlmThreadPool.cpp#L429 > > In the case where _data->numThreads == 0, in which the response should be to let the calling thread execute the task directly, note that it does so while still within the stop of the Lock. Therefore multiple threads each reading OpenEXR files under this condition will block against each other and refuse to read exr files concurrently. > -- Larry Gritz [email protected]