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 » Developing U++ » U++ Developers corner » Unified locking?
Unified locking? [message #17780] Thu, 28 August 2008 15:41
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Just a small idea, maybe we can officially name two methods:

EnterMutex
LeaveMutex

and use them for "unified locking". I mean, if you e.g. have any type wich instances are to be locked, it should have these two methods.

We could then apply commong constructs to such objects, e.g. templated Mutex::Lock or INTERLOCKED.

For example, if CtrlCore gets traditionally MT safe, we could do

ArrayCtrl a;

INTERLOCKED_(a) {
....
}

of course, obvious utility is

template <class T> class WithMutex : T, Mutex {}

Mirek
Previous Topic: updating portage tree, questions, etc.
Next Topic: Standard button size....
Goto Forum:
  


Current Time: Mon Apr 29 17:08:25 CEST 2024

Total time taken to generate the page: 0.03394 seconds