
24 Mar
2008
24 Mar
'08
4:13 p.m.
Frank Mori Hess wrote:
I'm not clear on what the advantage of passing a LockableRef would be over just passing a plain reference to a Lockable?
The Lockable that I have is a Lockable< array<int,100> >. I need something like a Lockable<int> to pass to the function, because the function is only interested in part of the protected data. I want some way to reference the "parent" Lockable's mutex and a portion of its data (element of array, field of a struct etc.) Phil.