wine-pthread hangs

Mike Hearn mike at theoretic.com
Sat Nov 15 07:11:15 CST 2003


On Sat, 2003-11-15 at 03:06, Jeremy Shaw wrote:
> I am trying to use wine-pthread because I want to use the winejack
> driver. The winejack driver does not work correctly with wine-kthread,
> because in libjack, there is a call to pthread_create which never
> returns.

That sounds like a bug in Wine. My understanding is that when using
kthreads, we emulate pthreads - hence Wine must NOT be linked against
the system pthreads lib.

>  According to usenet, this could happen because wine-kthread
> is not linked against libpthread explicitly. I tried adding an
> explicit -lpthread to wine-kthread, but this just cause wine-kthread
> to hang (similar to wine-pthread, but in a different location).

Yes, I don't think that will work.

The main wine binary should now detect which version (kthread or
pthread) you need, and select it for you at runtime. You need latest CVS
for that though. If you think it's choosing the wrong one, then that
also is a bug, but you should not need to override its choice.




More information about the wine-devel mailing list