Glib mutex doesn't work on Windows

2010-12-16 Thread Michael T .
Hi, I'm using glib mutexes on Windows and I think they don't work. I tried to use WIN API mutexes instead and they did work. Short sample program: I initialize the WIN API mutex, then create two threads using WIN API with this simple code: DWORD WINAPI MyThreadFunction( LPVOID lpParam ) {

Re: Glib mutex doesn't work on Windows

2010-12-16 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/16/2010 11:47 AM, Michael T. wrote: Hi, I'm using glib mutexes on Windows and I think they don't work. I tried to use WIN API mutexes instead and they did work. Short sample program: I initialize the WIN API mutex, then create two

Re: Glib mutex doesn't work on Windows

2010-12-16 Thread michael
Hi On 12/16/2010 07:47 PM, Michael T. wrote: Hi, I'm using glib mutexes on Windows and I think they don't work. I tried to use WIN API mutexes instead and they did work. Short sample program: I initialize the WIN API mutex, then create two threads using WIN API with this simple code: DWORD

Re: Glib mutex doesn't work on Windows

2010-12-16 Thread Chris Vine
On Thu, 16 Dec 2010 12:17:51 -0700 Kevin DeKorte kdeko...@gmail.com wrote: [snip] I had this problem developing a GTK application on OpenBSD, it seems that GMutex's are not guaranteed to be recursive or non-recursive. I altered my code to work with GConditionals and worked fine. Perhaps,

Re: Glib mutex doesn't work on Windows

2010-12-16 Thread Chris Vine
On Thu, 16 Dec 2010 21:15:36 + Chris Vine ch...@cvine.freeserve.co.uk wrote: On Thu, 16 Dec 2010 12:17:51 -0700 Kevin DeKorte kdeko...@gmail.com wrote: [snip] I had this problem developing a GTK application on OpenBSD, it seems that GMutex's are not guaranteed to be recursive or

Re: Glib mutex doesn't work on Windows

2010-12-16 Thread John K. Luebs
Michael T. wrote: Hi, I'm using glib mutexes on Windows and I think they don't work. I tried to use WIN API mutexes instead and they did work. Short sample program: I initialize the WIN API mutex, then create two threads using WIN API with this simple code: DWORD WINAPI MyThreadFunction(

Re: Glib mutex doesn't work on Windows

2010-12-16 Thread michael
Hi On 12/16/2010 07:47 PM, Michael T. wrote: Hi, I'm using glib mutexes on Windows and I think they don't work. I tried to use WIN API mutexes instead and they did work. Short sample program: I initialize the WIN API mutex, then create two threads using WIN API with this simple code: DWORD