Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      tss_get

      From cppreference.com
      <c‎ |thread
       
       
      Concurrency support library
       
      Defined in header<threads.h>
      void*tss_get(tss_t tss_key);
      (since C11)

      Returns the value held in thread-specific storage for the current thread identified bytss_key. Different threads may get different values identified by the same key.

      On thread startup (seethrd_create), the values associated with all TSS keys are NULL. Different value may be placed in the thread-specific storage withtss_set.

      Contents

      [edit]Parameters

      tss_key - thread-specific storage key, obtained fromtss_create and not deleted bytss_delete

      [edit]Return value

      The value on success,NULL on failure.

      [edit]Notes

      The POSIX equivalent for this function ispthread_getspecific.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]References

      • C17 standard (ISO/IEC 9899:2018):
      • 7.26.6.3 The tss_get function (p: 282)
      • C11 standard (ISO/IEC 9899:2011):
      • 7.26.6.3 The tss_get function (p: 386)

      [edit]See also

      (C11)
      write to thread-specific storage
      (function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=c/thread/tss_get&oldid=138761"

      [8]ページ先頭

      ©2009-2025 Movatter.jp