
25 Oct
2007
25 Oct
'07
4:53 p.m.
"Preston A. Elder" <prez@neuromancy.net> writes:
I have written a refinement on boost::mutex that allows for it to be interrupted while waiting to acquire the mutex by altering a predicate (once the mutex is acquired, it acts like a regular mutex).
Here is the code: http://www.neuromancy.net/fisheye/browse/mantra/trunk/Mantra-I/mantra/utils/...
It's an interesting idea. I'm yet to be convinced that it's worth adding to boost.thread, though --- I'd rather just use a condition variable. Anthony -- Anthony Williams Just Software Solutions Ltd - http://www.justsoftwaresolutions.co.uk Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL