http://bugzilla.novell.com/show_bug.cgi?id=537764
http://bugzilla.novell.com/show_bug.cgi?id=537764#c26 Laurent Etiemble <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #331453|0 |1 is obsolete| | --- Comment #26 from Laurent Etiemble <[email protected]> 2009-12-28 22:53:42 UTC --- Created an attachment (id=334416) --> (http://bugzilla.novell.com/attachment.cgi?id=334416) Extension of embedding API to allow foreign thread tracking Here is a proposal for an embedding API to allow foreign thread tracking. The API allows: - To be notified when a foreign thread is registered with the Mono runtime - To be notified when a foreign thread is de-registered from the Mono runtime - To override default Mono behavior by telling that foreign thread are de-registered externally - To de-register a foreign thread from the Mono runtime There are two cases of use: 1) An application hooks the Mono runtime to be notified when foreign thread are registered/de-registered. 2) An application hooks the Mono runtime to handle the foreign thread de-registration. When a foreign thread is registered, the application is notified. The application is then responsible for the de-registration of the foreign thread. Some notes: - The patch has been generated against the 2.6.1 release sources. - I have put the embedding API in the "mono/utils" folder, because it is referenced both as a public API and used in the GC. - I have decorated the API to work only if pthread is present. We can see later if other platforms have similar needs. - I only work on the Bohem GC. I don't have taken time to look into the SGen one. - I have tested the embedding API on Leopard and Snow Leopard, and it works at it should for the 2 cases above. - I will post on Mono-Dev this entry in order to get a larger feedback. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
