T
Tim Johnson
The synopsis for the lock statement indicates it uses a mutex object
internally, and it seems a lot simpler to use, as in:
lock(myObject) or lock(typeof(myStaticObject))
{
//locked statements here
}
Any comments on the pros/cons of the two approaches, in sharing access to a
common object from multiple threads?
--
Tim Johnson
High Point Software, Inc.
www.high-point.com
(503) 312-8625
internally, and it seems a lot simpler to use, as in:
lock(myObject) or lock(typeof(myStaticObject))
{
//locked statements here
}
Any comments on the pros/cons of the two approaches, in sharing access to a
common object from multiple threads?
--
Tim Johnson
High Point Software, Inc.
www.high-point.com
(503) 312-8625