[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Openexr-devel] Thread pool bug
From: |
Larry Gritz |
Subject: |
Re: [Openexr-devel] Thread pool bug |
Date: |
Wed, 28 Oct 2015 10:44:54 -0700 |
I believe the following should fix this:
https://github.com/openexr/openexr/pull/170
> On Oct 27, 2015, at 2:08 PM, Larry Gritz <address@hidden> 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
address@hidden