Re: pthread_mutex in a winelib dll called from a win32 application

2004-07-21 Thread Alexandre Julliard
Mike Hearn <[EMAIL PROTECTED]> writes: > On Wed, 21 Jul 2004 11:43:59 -0700, Alexandre Julliard wrote: >> It works just like with other apps, it disables NPTL. > > I said that because I remember when NPTL first became a problem for us, > LD_ASSUME_KERNEL was not enough to make Wine work properly

Re: pthread_mutex in a winelib dll called from a win32 application

2004-07-21 Thread Mike Hearn
On Wed, 21 Jul 2004 11:43:59 -0700, Alexandre Julliard wrote: > It works just like with other apps, it disables NPTL. I said that because I remember when NPTL first became a problem for us, LD_ASSUME_KERNEL was not enough to make Wine work properly again. It would appear to work but you'd still g

Re: pthread_mutex in a winelib dll called from a win32 application

2004-07-21 Thread Alexandre Julliard
Mike Hearn <[EMAIL PROTECTED]> writes: > I'm pretty sure LD_ASSUME_KERNEL doesn't work with Wine in the way it > does with most apps, but only Alexandre would know for sure. It works just like with other apps, it disables NPTL. > Certainly if you have it available using NPTL is recommended. Def

Re: pthread_mutex in a winelib dll called from a win32 application

2004-07-21 Thread Shachar Shemesh
Mike Hearn wrote: On Wed, 21 Jul 2004 13:08:57 +0300, Shachar Shemesh wrote: Are there any restrictions in synchronizing wine generated threads (generated through the win32 api) using the pthreads library native calls? On NPTL (pthread) systems I think this should work. On kthread systems

Re: pthread_mutex in a winelib dll called from a win32 application

2004-07-21 Thread Mike Hearn
On Wed, 2004-07-21 at 14:40 +0300, Shachar Shemesh wrote: > This is RedHat 9, kernel 2.4.20-31.9. It has NPTL, but we are not using > it at the moment (LD_ASSUME_KERNEL=2.4.1). This does explain the > problems we're having. I'm pretty sure LD_ASSUME_KERNEL doesn't work with Wine in the way it do

Re: pthread_mutex in a winelib dll called from a win32 application

2004-07-21 Thread Robert Shearman
Mike Hearn wrote: On Wed, 21 Jul 2004 13:08:57 +0300, Shachar Shemesh wrote: The problem is that when I try to call pthread_mutex_init, pthread_mutex_lock and friends, I get quite a few deadlocks, and even when not deadlocking, it still takes over 42 seconds. When doing the same without the mute

Re: pthread_mutex in a winelib dll called from a win32 application

2004-07-21 Thread Mike Hearn
On Wed, 21 Jul 2004 13:08:57 +0300, Shachar Shemesh wrote: > Are there any restrictions in synchronizing wine generated threads > (generated through the win32 api) using the pthreads library native calls? On NPTL (pthread) systems I think this should work. On kthread systems pthreads is emulated

pthread_mutex in a winelib dll called from a win32 application

2004-07-21 Thread Shachar Shemesh
Hi all, Are there any restrictions in synchronizing wine generated threads (generated through the win32 api) using the pthreads library native calls? I have an app that is experiencing extremely slow performance (operation takes 17 seconds on native windows, over 3 minutes on Wine). One idea fo