
Just a function pointer passed to the DLL ----- Original Message ----- From: "Hansi" <hansipet@web.de> Newsgroups: gmane.comp.lib.boost.user To: <boost-users@lists.boost.org> Sent: Friday, October 03, 2008 11:16 AM Subject: Re: threads in a DLL with callbacks
What do you use as callback?
Anthony Williams schrieb:
"Nicholas Cain" <ncain@frontier.co.uk> 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