]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/doc/the-libgomp-abi/implementing-threadprivate-construct.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / libgomp / doc / the-libgomp-abi / implementing-threadprivate-construct.rst
1 ..
2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
5
6 .. _implementing-threadprivate-construct:
7
8 Implementing THREADPRIVATE construct
9 ************************************
10
11 In _most_ cases we can map this directly to ``__thread``. Except
12 that OMP allows constructors for C++ objects. We can either
13 refuse to support this (how often is it used?) or we can
14 implement something akin to .ctors.
15
16 Even more ideally, this ctor feature is handled by extensions
17 to the main pthreads library. Failing that, we can have a set
18 of entry points to register ctor functions to be called.