summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VideoBackendBase.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-08-17 14:41:35 +0200
committerLéo Lam <leo@leolam.fr>2020-08-17 15:14:45 +0200
commitd1439a1fa918b204f3591fcd5bfc5cc291979733 (patch)
treebca3c204b655f4f6268b36ede9890b01ce278d2d /Source/Core/VideoCommon/VideoBackendBase.cpp
parent6104018fe13eeb02dfd26f02fb42d74e77e39f16 (diff)
IOS/USB: Move scan thread logic into a separate class
This moves the scan thread logic and variables into a separate ScanThread class. By turning ScanThread instances into members of the most derived class, this ensures that the scan thread is always properly stopped when the most derived class is destructed and fixes a race condition that could cause the scan thread to call virtual member functions from a derived class whose members have already been destructed. A drawback of this approach is that the scan thread must be the last member variable, so this commit also adds static assertions to ensure that the assumption stays valid.
Diffstat (limited to 'Source/Core/VideoCommon/VideoBackendBase.cpp')
0 files changed, 0 insertions, 0 deletions