Boost logo

Boost Users :

Subject: Re: [Boost-users] threads in a DLL with callbacks
From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2008-10-03 05:38:37


"Nicholas Cain" <ncain_at_[hidden]> writes:

> Hi, can I make another plea for any answers to my question (below). It
> may be that the answer is so obviously 'of course it does' that I
> didn't get a response.

Sorry for the late reply.

>> My question is; should the windows critical section protect the
>> callbacks just as well as the boost mutexes, or does it require a
>> boost mutex protection? (or do you require a code example to know
>> the answer to this?)

Yes. CRITICAL_SECTION should provide exactly the same level of
protection as Boost::mutex.

Anthony

-- 
Anthony Williams            | Just Software Solutions Ltd
Custom Software Development | http://www.justsoftwaresolutions.co.uk
Registered in England, Company Number 5478976.
Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net