[Mono-list] pthreads in mono

Andreas Färber andreas.faerber at web.de
Thu Mar 27 07:18:59 EDT 2008


Chris,

Am 27.03.2008 um 06:04 schrieb Chris Howie:

> On Tue, Mar 25, 2008 at 9:42 AM, Jestin Stoffel
> <jestin.stoffel at gmail.com> wrote:
>> I am trying to write mono bindings to libgps, but I'm running into a
>> problem.  In libgps, there is a function to setup a callback that is
>> defined to take a pointer to a pthread, in addition to the usual
>> function pointer.  To delete the callback, the pointer to the  
>> pthread is
>> also required.  How do I create a pthread in mono so that I can send
>> this pointer to the library function?
>>
>> --Jestin
>
> I assume you are referring to gps_set_callback and gps_del_callback.
> Since mono doesn't support pthreads as far as I know, [...]

You sure about that? Mono does use pthreads in some way, keeping it  
from running on BeOS.

Is getting a pointer to the current thread in native land or using p/ 
invoke not an option?

Andreas


More information about the Mono-list mailing list