[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xorg
Subject: XInitThreads multiple times
From: "Chris Sorenson" <csoren () cpinternet ! com>
Date: 2021-08-05 15:46:58
Message-ID: 1628178418.aegu9e74o4c0o4kg () webmail ! mycci ! net
[Download RAW message or body]
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?
> >
>
> XInitThreads isn't re-entrant, so you need to ensure that it isn't
> getting invoked by multiple threads in parallel, but it does check to
> see if it has been called before, so it is safe to call multiple times
> in sequence.
>
Also remember to lock (and unlock) the display in each thread.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic