20 Feb
2006
20 Feb
'06
9:27 p.m.
Dhanvi Kapila wrote:
Kevin Heifner wrote:
Right. The mutex is acquired in the constructor and therefore provides the memory barrier needed. It looks wrong to my eyes since I would never use raw new/delete in this context. Sorry for the noise.
So how you delete a lock ?? Is there any other safe way to delete a lock ?
I don't know what you are asking. Can you provide an example? Use the scoped lock concept. If you need to hide boost from the rest of the application then provide a wrapper around scoped lock. KevinH -- Kevin Heifner heifner @ ociweb.com http://heifner.blogspot.com Object Computing, Inc. (OCI) www.ociweb.com