XInitThreads multiple times

Keith Packard keithp at keithp.com
Thu Aug 5 15:36:07 UTC 2021


Dawid Kowalczyk <niexx13 at gmail.com> 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 check to
see if it has been called before, so it is safe to call multiple times
in sequence.

-- 
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.x.org/archives/xorg/attachments/20210805/376f25ca/attachment.sig>


More information about the xorg mailing list