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

2012-09-16 Thread Rodrigo Kumpera
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 john...@gmail.com wrote:

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

2012-09-16 Thread Daniel Lo Nigro
If you want to call a C++ class, you can use SWIG to generate all the P/Invoke wrapper code. http://www.swig.org/ On Mon, Sep 17, 2012 at 4:05 AM, Rodrigo Kumpera kump...@gmail.com wrote: P/invoke can only call C functions, so you need to wrap it an extern C function. Beyond that, mono will

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

2012-09-16 Thread John Chen
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]

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

2012-09-16 Thread Jonathan Pryor
On Sep 16, 2012, at 9:05 PM, John Chen john...@gmail.com wrote: 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 Linux, io-layer