Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 1076
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: Sun Apr 28 01:17:22 CEST 2024

Total time taken to generate the page: 0.04304 seconds