Re: XInitThreads multiple times

2021-08-11 Thread Aaron Plattner
On 8/5/21 8:36 AM, Keith Packard wrote: Dawid Kowalczyk writes: Hello, Is it possible to call |XInitThreads| multiple times, for example 20 times and not worry who calls it first? XInitThreads isn't re-entrant, so you need to ensure that it isn't getting invoked by multiple threads

XInitThreads multiple times

2021-08-06 Thread Chris Sorenson
Yes, that's kind of what it's for! Just make sure to lock (and unlock) the display in each thread. > > > > Hello, > > > > Is it possible to call |XInitThreads| multiple times, for example 20 > > times and not worry who calls it first? > > > > XInitThrea

Re: XInitThreads multiple times

2021-08-05 Thread Keith Packard
Dawid Kowalczyk writes: > Hello, > > Is it possible to call |XInitThreads| multiple times, for example 20 > times and not worry who calls it first? XInitThreads isn't re-entrant, so you need to ensure that it isn't getting invoked by multiple threads in parallel, but it does

XInitThreads multiple times

2021-08-05 Thread Dawid Kowalczyk
Hello, Is it possible to call |XInitThreads| multiple times, for example 20 times and not worry who calls it first?