On 14.09.2006, at 23:02, Stephen Deasey wrote:


AtShutdown callbacks are called twice:  the first time is to allow you
to notify threads that they should begin cleaning up for shutdown; the
second time you should actually wait for the shutdown to complete,
taking note of the absolute timeout value.

Look at some of the existing code that handles this.  There's 3 or 4
AtShutdown procs in the core.

The interface is kind of ugly, I agree.  I always have to look up what
I'm supposed to do.  Suggestions appreciated!

Well, no suggestions. It is rather simple:
either you pass the toutPtr in which case you need to wait
or yout pass NULL in which case you prepare for waiting.
This wórks now.  I will keep this in mind.



Reply via email to