> Offtopic: (on topic?)  I've been playing with P9P, getting libdraw to
> open applications applications in the same window they were started
> it.  I've got it working except for the dreaded X11-is-single-
> threaded race condition.

Can you explain the race?

> Within a single proc it's easy to wrap the
> offending calls in a lock, but I'm looking at the case where
> different procs need to use the same window.
> It seems that all I
> need is a nice, cheap, inter-process lock.  What's the most portable
> answer?

Is it inter-process but still one program?  What are the specific
code pieces that need to be interlocked?  The multi-process
X apps in p9p each use their own display to avoid most of
the races.

Russ

Reply via email to