[Mono-dev] Thread shutdown hook patch

Rodrigo Kumpera kumpera at gmail.com
Mon Feb 9 14:51:42 EST 2009


And updated version without some useless printf removed.

On Mon, Feb 9, 2009 at 4:22 PM, Rodrigo Kumpera <kumpera at gmail.com> wrote:

> Hey,
>
> 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.
>
>
> Cheers,
> Rodrigo
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090209/76483828/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shutdown_take3.diff
Type: text/x-diff
Size: 6753 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090209/76483828/attachment.bin 


More information about the Mono-devel-list mailing list