[vlc-devel] [vlc-commits] win32: Inhibit: Call SetThreadExecutionState from a dedicated thread
Rémi Denis-Courmont
remi at remlab.net
Wed Jan 24 21:26:53 CET 2018
Le keskiviikkona 24. tammikuuta 2018, 22.08.13 EET Hugo Beauzée-Luyssen a
écrit :
> vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Jan 24
> 17:52:23 2018 +0100| [b2ea8558193cd6aa07da36a2e5eab7f8d846eb33] |
> committer: Hugo Beauzée-Luyssen
>
> win32: Inhibit: Call SetThreadExecutionState from a dedicated thread
>
> Fix #19463
The semaphore seems totally useless here. And the boolean flag too - a level
trigger on mask should be enough.
(Alternatively, create/destroy the thread on inhibit/deinhibit and keep only
the semaphore. Simpler but no error handling.)
--
雷米‧德尼-库尔蒙
https://www.remlab.net/
More information about the vlc-devel
mailing list