author Andrew Osmond <>
Tue, 27 Mar 2018 10:57:01 -0400
changeset 410257 1c5d4e9652092cb2cbec3c42656486a09b84ec9f
parent 401955 d67b952ecbe41872990cc0acd1ad480476560bc9
child 413094 787dce710dce6dff0d9f9e7621c9dac676843678
permissions -rw-r--r--
Bug 1444537 - Part 2. Shutting down the decode pool should make animated decoders bail early. r=tnikkel When we shutdown the decode pool threads, it does not do a simple join with the main thread. It will actually process the main thread event loop, which can cause a bad series of events. The refresh tick could still be running and advancing our animated images, causing the animated decoders to continue running, which in turn prevents the decoder threads from finishing shutting down, and the main thread from joining them. Now we check on each frame whether or not the decoder should just stop decoding more frames because the decode pool has started shutdown. If it has, it will stop immediately.