CtrlCore: GuiUnlock now class (n private)

git-svn-id: svn://ultimatepp.org/upp/trunk@12200 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-08-27 15:58:25 +00:00
parent 3731223525
commit f9e6ff3ecf

View file

@ -75,9 +75,10 @@ struct GuiLock {
~GuiLock() { LeaveGuiMutex(); }
};
struct GuiUnlock {
class GuiUnlock {
int n;
public:
GuiUnlock() { n = LeaveGuiMutexAll(); }
~GuiUnlock() { EnterGuiMutex(n); }
};