[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: VO & Threads (was: OO2C -> Debian?)
>Just for the record: VisualOberon is currently not known to be
>thread safe. In fact I'm not sure what a library needs to do to be
>thread safe. I would be interested to discuss such topics in this
>mailing list. Exspecially for the current version of VO there is the
>problem, too, that X itself on most systems is *not* threadsafe.
>XFree86 can be made threadsafe but must be exspecially compiled for.
The X server is connected to its clients through a serial
interface (sockets), and can probably considered thread safe.
The X client, i.e., the program side libX11, is not thread
safe on most systems. But as long as all calls to libX11 are
serialized properly, it should be possible to use a multi-
threaded VO library. This probably means, that one has to put
a huge mutex around X11.
In other words: If VO is careful about its calls to libX11,
it could run multi-threaded on systems that do not provide
a mt libX11.
-- mva