Re: Mixing Glib::Thread and pthread_*



Am Mittwoch, den 17.01.2007, 19:43 +0100 schrieb Andreas Volz:
> Hello,
> 
> is it possible to mix the use of Glib::Thread and the C pthread_* API?
> The problem is that I use an API (gpsd) that needs a pthread_t as
> argument. In my application I have yet several Glib::Thread's. Are their
> potential problems by mixing both models?

Not on platforms using POSIX threads.

> Is Glib::Thread always implemented with pthreads? Also on the win32
> plattform? Do I get problem while porting my application to win32?

Likely, yes.  Though pthreads are probably more or less supported on
Cygwin, you'll most likely want to target mingw, which as far as I'm
aware doesn't offer pthreads.

--Daniel





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]