tsd.c 393 B

12345678910
  1. /* libpthread sets _dl_error_catch_tsd to point to this function.
  2. We define it here instead of in libpthread so t here instead of in libpthread so that it doesn't
  3. need to have a TLS segment of its own just for this one pointer. */
  4. void ** __attribute__ ((const))
  5. __libc_dl_error_tsd (void)
  6. {
  7. static __thread void *data __attribute__ ((tls_model ("initial-exec")));
  8. return &data;
  9. }