XDrawPoint(s) etc MT safe?
Dennis Clarke
dclarke at blastwave.org
Wed Oct 17 17:59:59 UTC 2018
On 10/17/2018 05:37 AM, Carsten Haitzler (The Rasterman) wrote:
> On Tue, 16 Oct 2018 22:04:15 -0400 Dennis Clarke <dclarke at blastwave.org> said:
>
>> On 10/16/2018 09:58 PM, Dennis Clarke wrote:
>>>
>>> Dear Xorg :
>>>
>>> Something I had not thought of came up today. Could multiple threads
>>> call XDrawPoint() and then XFlush() ? Suppose sixteen threads are
>>> dispatched to do some foo and each of them utters some XDrawPoint()
>>> calls and then XFlush()? Is that remotely thread safe?
>>>
>>
>> Sorry, assume XInitThreads() is in place. Am I stuck with using
>> XLockDisplay() and XUnlockDisplay() and really multiple threads can
>> not really do work simultaneously. That is the question.
>
> xinitthreads should make anything in xlib "mt safe"..
OKay .. good enough for me .. for now at least.
>
> but ... how can you sensibly have 2 threads draw to the same target in any
> way ... unless you very specifically avoid ever overdrawing ...
Exactly that way.
Dennis
More information about the xorg
mailing list