[RFC] pthread emulation on FreeBSD (and Linux)

Patrik Stridvall ps at leissner.se
Mon Nov 25 14:30:26 CST 2002


> Patrik Stridvall <ps at leissner.se> writes:
> 
> > FreeBSD since it AFAICS have no default overridable implementation
> > seems to require that we have some sort of wine_pthread library to
> > implement pthreads from scratch like outlined in the attached patch.
> 
> I don't think you need a separate library, ntdll should do fine (once
> scheduler/pthread.c is adapted to work on FreeBSD of course). You just
> need some default implementation for the missing symbols before they
> get overriden by ntdll. Does this work for you?
[patch sniped]

Except for a few minor details, which I have fixed, it seems to work.
I have no OpenGL application to test with though.

---8<---

*** pthread

* configure.ac,
  include/config.h.in,
  library/port.c,
  scheduler/pthread.c:
Fixed pthreads on FreeBSD (based on patch by Alexandre Julliard).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pthread.diff
Type: application/octet-stream
Size: 3585 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20021125/f162a96e/pthread.obj


More information about the wine-patches mailing list