Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions source/lib/dng_sdk/dng_pthread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,11 @@ int dng_pthread_create(dng_pthread_t *thread, const pthread_attr_t *attrs, void
#endif

std::pair<DWORD, std::pair<HANDLE, void **> > newMapEntry(threadID,
#if __GNUC__ > 3
std::pair<HANDLE, void **>((HANDLE)result, resultHolder.Get ()));
#else
std::pair<HANDLE, void **>((HANDLE)result, resultHolder.get ()));
#endif
std::pair<ThreadMapType::iterator, bool> insertion = primaryHandleMap.insert(newMapEntry);

// If there is a handle open on the thread, its ID should not be reused so assert that an insertion was made.
Expand Down