Enforcing Correct Mutex Usage with Synchronized Values

Friday, 28 May 2010

My latest article, Enforcing Correct Mutex Usage with Synchronized Values has been published on the Dr Dobb's website.

This article expands on the SynchronizedValue<T> template I mentioned in my presentation on Concurrency in the Real World at ACCU 2010, and deals with the problem of ensuring that the mutex associated with some data is locked whenever the data is accessed.

The basic idea is that you use SynchronizedValue<T> wherever you have an object of type T that you wish to be protected with its own mutex. The SynchronizedValue<T> then behaves like a pointer-to-T for simple uses.

Read the article for the full details.

Posted by Anthony Williams
[/ news /] permanent link
Tags: ,
Stumble It! stumbleupon logo | Submit to Reddit reddit logo | Submit to DZone dzone logo

Comment on this post

If you liked this post, why not subscribe to the RSS feed RSS feed or Follow me on Twitter? You can also subscribe to this blog by email using the form on the right.

3 Comments

You have a little entity leakage up there; might wanna fix it.

by Dave Abrahams at 14:53:09 on Friday, 28 May 2010

Thanks Dave

by Anthony Williams at 14:56:39 on Friday, 28 May 2010

abercrombie and fitch uk store !abercrombie uk,which sells abercrombie clothing including abercrombie kids,abercrombie boys,abercromebie men,abercrombie women and so on to teens,now is so famous in abercrombie and fitch uk.In order to feedback our customers' support and cooperation,our abercrombie storee is going to give some big promotions in this summer.Welcome to shop with us.

http://www.aberclombie.com/abercrombie-and-fitch-men.html

by abercrombie fitch polo at 09:30:57 on Thursday, 24 June 2010

Add your comment

Your name:

Your URL:

Email address:

Person or spambot?

Your comment: