Skip to content
Commit af24dad4 authored by David Edmundson's avatar David Edmundson
Browse files

Simplify ImageColors::generatePalette initial loop to fix crash

tempSamples is meant to work like a pseudo thread local storage, before
pushing everything together.

On my system omp_get_thread_num always returned 0 despite running in
different threads. We then crash on multiple access to the same list.

Maybe that's an upstream bug, but in either case we can reduce some
allocations, complexity and copying by locking round the insertion.
parent 684c010e
Pipeline #489821 passed with stage
in 5 minutes and 58 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment