mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
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:
parent
3731223525
commit
f9e6ff3ecf
1 changed files with 3 additions and 2 deletions
|
|
@ -75,9 +75,10 @@ struct GuiLock {
|
|||
~GuiLock() { LeaveGuiMutex(); }
|
||||
};
|
||||
|
||||
struct GuiUnlock {
|
||||
class GuiUnlock {
|
||||
int n;
|
||||
|
||||
|
||||
public:
|
||||
GuiUnlock() { n = LeaveGuiMutexAll(); }
|
||||
~GuiUnlock() { EnterGuiMutex(n); }
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue