[mythtv-commits] [MythTV/mythtv] dc5035: Fix crash in thread destruction.
noreply at github.com
Thu Feb 4 19:12:09 UTC 2021
Author: David Hampton <mythtv at love2code.net>
Date: 2021-02-04 (Thu, 04 Feb 2021)
Fix crash in thread destruction.
This crash was introduced by the std::chrono changes in commit a9d53f3230.
The problem occurs because 1) std::chrono is based on an int64_t where
QThread::wait expects an uint64_t, and 2) newer versions of Qt treat
ULONG_MAX as a special value. The fix is to map the maximum std::chrono
value to ULONG_MAX. This commit also protects from negative numbers being
passed into the wait call and having them be inadvertently mapped to very
More information about the mythtv-commits