We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Mutex will only be initialized on first call, suggestion is to move the static Mutex outside of the function.
Mike
IlmImf/ImfAttribute.cpp
LockedTypeMap & typeMap () { // race condition static Mutex criticalSection; // end race condition Lock lock (criticalSection);
static LockedTypeMap* typeMap = 0; if (typeMap == 0) typeMap = new LockedTypeMap (); return *typeMap;
}
OpenEXR/IlmImf/ImfHeader.cpp
void staticInitialize () { // race condition static Mutex criticalSection; // end race condition Lock lock (criticalSection);
static bool initialized = false; if (!initialized) {
The text was updated successfully, but these errors were encountered:
Looking into the OpenEXR backlog.
This issues appears to be fixed by 00df2c7 in release v.2.3.0.
Sorry, something went wrong.
No branches or pull requests
Mutex will only be initialized on first call, suggestion is to move the static Mutex outside of the function.
Mike
IlmImf/ImfAttribute.cpp
LockedTypeMap &
typeMap ()
{
// race condition
static Mutex criticalSection;
// end race condition
Lock lock (criticalSection);
}
OpenEXR/IlmImf/ImfHeader.cpp
void
staticInitialize ()
{
// race condition
static Mutex criticalSection;
// end race condition
Lock lock (criticalSection);
The text was updated successfully, but these errors were encountered: