U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ MT-multithreading and servers » ASyncWork/CoWork Cancel() method leads to deadlock (when used with GuiLock)
Re: ASyncWork/CoWork Cancel() method leads to deadlock (when used with GuiLock) [message #50212 is a reply to message #50209] Mon, 27 August 2018 17:24 Go to previous messageGo to previous message
Klugier is currently offline  Klugier
Messages: 1119
Registered: September 2012
Location: Poland, Kraków
Senior Contributor
Hello Mirek

Why not make "n" private in GuiUnlock class:
struct GuiUnlock {
	int n; // There is realy not need to make it publicly available.
	
	 GuiUnlock()  { n = LeaveGuiMutexAll(); }
	~GuiUnlock() { EnterGuiMutex(n); }
};


Sincerely,
Klugier


U++ - one framework to rule them all.

[Updated on: Mon, 27 August 2018 17:24]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to use CoWork and Progress together?
Next Topic: Skylark session verification
Goto Forum:
  


Current Time: Tue Sep 15 08:37:13 GMT+2 2026

Total time taken to generate the page: 0.01421 seconds