[Mono-list] How does mono translated into C++ Native Code in Linux

John Chen johnxhc at gmail.com
Mon Sep 17 01:05:53 UTC 2012


Question, when Mono using AutoEvent inside managed code, what does it
corresponding it to? I know in Windows it translated into Windows Event
object (I could use the same handle in C, C++), how about in Linux?

On Sun, Sep 16, 2012 at 11:06 AM, Rodrigo Kumpera [via Mono] <
ml-node+s1490590n4656655h16 at n4.nabble.com> wrote:

> P/invoke can only call C functions, so you need to wrap it an "extern C"
> function.
>
> Beyond that, mono will not marshal the AutoReset Event into something
> usable to you,
> so my suggestion is to pass a delegate that does it for you.
>
>
> On Fri, Sep 14, 2012 at 4:33 PM, John Chen <[hidden email]<http://user/SendEmail.jtp?type=node&node=4656655&i=0>
> > wrote:
>
>> Hi,
>> I need to call Natvie Linux C++ code with a Pinvoke and passing a
>> AutoReset
>> Event, my problem is I do not know what  Mono translate the AutoReset
>> Event
>> handler . I need to find out how to be able to signal the AutoReset Event
>> from C++.
>>
>> Please advice.
>> Thanks in advice.
>> John
>>
>>
>>
>> --
>> View this message in context:
>> http://mono.1490590.n4.nabble.com/How-does-mono-translated-into-C-Native-Code-in-Linux-tp4656633.html
>> Sent from the Mono - General mailing list archive at Nabble.com.
>> _______________________________________________
>> Mono-list maillist  -  [hidden email]<http://user/SendEmail.jtp?type=node&node=4656655&i=1>
>> http://lists.ximian.com/mailman/listinfo/mono-list
>>
>
>
> _______________________________________________
> Mono-list maillist  -  [hidden email]<http://user/SendEmail.jtp?type=node&node=4656655&i=2>
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://mono.1490590.n4.nabble.com/How-does-mono-translated-into-C-Native-Code-in-Linux-tp4656633p4656655.html
>  To unsubscribe from How does mono translated into C++ Native Code in
> Linux, click here<http://mono.1490590.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4656633&code=am9obnhoY0BnbWFpbC5jb218NDY1NjYzM3w5NDc0NDE1MDc=>
> .
> NAML<http://mono.1490590.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://mono.1490590.n4.nabble.com/How-does-mono-translated-into-C-Native-Code-in-Linux-tp4656633p4656659.html
Sent from the Mono - General mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20120916/1d6afea6/attachment-0001.html>


More information about the Mono-list mailing list