[Mono-dev] Thread shutdown hook patch

Rodrigo Kumpera kumpera at gmail.com
Mon Feb 9 13:22:36 EST 2009


The attached patch adds a new hook to allow threads to shutdown after the GC
finalizer has finished.
The motivation for it is to improve profiler's reliability at shutdown time.

The new callback notifies the thread when regular shutdown starts and gives
it a change to not
finish at this time.

Later on the same callback is used to notify the thread that the last stage
in the shutdown sequence
has been reached and it must shutdown.

The callback is per-thread as I don't want to have tools like the profiler
messing up with embedded users.

Please review.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090209/56824cf8/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shutdown_take2.diff
Type: text/x-diff
Size: 7063 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090209/56824cf8/attachment.bin 

More information about the Mono-devel-list mailing list