Re: Mixing Glib::Thread and pthread_*
- From: Andreas Volz <lists brachttal net>
- To: Daniel Elstner <daniel kitta googlemail com>, gtkmm-list gnome org
- Subject: Re: Mixing Glib::Thread and pthread_*
- Date: Thu, 18 Jan 2007 18:34:40 +0100
Am Wed, 17 Jan 2007 19:54:22 +0100 schrieb Daniel Elstner:
> 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.
Ok, is there a way to find out the Glib thread model at runtime and/or
compile time?
regards
Andreas
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]