[Mono-devel-list] Problems using the shared library from the RPMs.
George Kodinov
gkodinov at openlinksw.co.uk
Fri Apr 1 07:20:23 EST 2005
Hi,
I'm trying to build my Mono embedding binary using the Mono release RPMs.
In order to do that I would need a way to setup the
mono_thread_attach_aborted_cb global variable. Unfortunately on linux
this can only be done with a setter function AFAIK.
So please can we make a setter function.
For example :
--- mono/mini/mini.c.orig 2005-04-01 15:13:35.000000000 +0300
+++ mono/mini/mini.c 2005-04-01 15:14:43.000000000 +0300
@@ -7434,6 +7434,13 @@
void (*mono_thread_attach_aborted_cb ) (MonoObject *obj) = NULL;
+void
+mono_thread_set_attach_aborted_cb (
+ void (*new_mono_thread_attach_aborted_cb ) (MonoObject *obj))
+{
+ mono_thread_attach_aborted_cb = new_mono_thread_attach_aborted_cb;
+}
+
static void
mono_thread_abort_dummy (MonoObject *obj)
{
There will be also a need to put that in some header file (to be
included in the devel RPM ideally), but I can't see one that will fit so
IMHO it should be a new one.
Another problem that I have is the lack of a single initialization API
for an embedded mono. Can somebody please move the initialization code
from the mono binary main function to a separate function ?
Ideally it should be initialize/set_option/set_option/.... sequence.
Best Regards,
George Kodinov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gkodinov.vcf
Type: text/x-vcard
Size: 372 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050401/ad1689b9/attachment.vcf
More information about the Mono-devel-list
mailing list