[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Re: XInitThreads multiple times
From:       Keith Packard <keithp () keithp ! com>
Date:       2021-08-05 15:36:07
Message-ID: 877dgz6h08.fsf () keithp ! com
[Download RAW message or body]


Dawid Kowalczyk <niexx13@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

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic