Skip to content
Verified Commit c0a29970 authored by Fushan Wen's avatar Fushan Wen
Browse files

alternatecalendar: fix race in thread

1. There can be more than one QRunnable running at the same time.
2. s_solarTermsMap in ChineseCalendarProviderPrivate is not guarded by a
   mutex, and it can be used in more than one thread.
3. QCache doesn't clear its cache in FIFO way, so remove QCache and just
   use a plain copy of the result instead, which means only the current
   month is cached, and should be enough in most cases.
parent e0719fda
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