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: mutex, cplusplus
Stumble It! | Submit to Reddit | Submit to DZone
If you liked this post, why not subscribe to the RSS feed or Follow me on Twitter? You can also subscribe to this blog by email using the form on the left.
Design and Content Copyright © 2005-2024 Just Software Solutions Ltd. All rights reserved. | Privacy Policy
4 Comments
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
what a cool article really you have impressed me thank you for sharing this article.
You have a little entity leakage up there; might wanna fix it.
Thanks Dave