From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-09-06 14:08:53


The on_thread_exit service exposed by threadmon.dll is very useful on its
own (for win32 developers.) Perhaps it deserves to be documented?

I suggest the following improvement: change

void on_thread_exit(void (*) ());

to

void on_thread_exit(void (*) (void *), void *);

(rationale: when on_thread_exit is called to register a function for the
main thread, by the time the function is invoked, all thread-specific
variables are already gone.)

--
Peter Dimov
Multi Media Ltd.