diff options
author | Jesse Natalie <jenatali@microsoft.com> | 2021-02-22 11:23:45 -0800 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-02-23 17:06:48 +0000 |
commit | a77eedd6bb690c429102b2d36141055c1a4062f7 (patch) | |
tree | 5d1c91239891514bcb7f7477a2c3fb6972b67577 /docs/dispatch.rst | |
parent | ba141b95a7934a553b341222786d12a7c89ae519 (diff) | |
download | mesa3d-a77eedd6bb690c429102b2d36141055c1a4062f7.tar.gz |
docs: Document USE_ELF_TLS can work on Windows too
Reviewed-by: Jose Fonseca <jfonseca@vmware.com.>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9165>
Diffstat (limited to 'docs/dispatch.rst')
-rw-r--r-- | docs/dispatch.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/dispatch.rst b/docs/dispatch.rst index ebf6cd615fd..cd1ca3434d9 100644 --- a/docs/dispatch.rst +++ b/docs/dispatch.rst @@ -152,6 +152,12 @@ Use of this path is controlled by the preprocessor define ``USE_ELF_TLS``. Any platform capable of using ELF TLS should use this as the default dispatch method. +Windows has a similar concept, and beginning with Windows Vista, shared +libraries can take advantage of compiler-assisted TLS. This TLS data +has no fixed size and does not compete with API-based TLS (``TlsAlloc``) +for the limited number of slots available there, and so ``USE_ELF_TLS`` can +be used on Windows too, even though it's not truly ELF. + 3.3. Assembly Language Dispatch Stubs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |