View source code
Display the source code in rt/sections_osx_x86_64.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Function rt.sections_osx_x86_64.firstTLVKey

Returns the first TLV key for the given image.

pthread_key_t firstTLVKey (
  const mach_header_64* header
) pure nothrow @nogc;

The TLV key is a key that associates a value of type dyld_tlv_info with a thread. Each thread local variable has an associates TLV key. The TLV keys are all the same for each image.

Parameters

NameDescription
the image to look for the TLV key in

Returns

the first TLV key for the given image or pthread_key_t.max if no key was found.

Authors

Walter Bright, Sean Kelly, Martin Nowak, Jacob Carlborg

License

Distributed under the Boost Software License 1.0. (See accompanying file LICENSE)