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
template I mentioned in my presentation
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
SynchronizedValue<T> wherever you have
an object of type
T that you wish to be protected with
its own mutex. The
behaves like a pointer-to-
T for simple uses.
Read the article for the full details.