Namespaces
Variants
Actions

thrd_current

From cppreference.com
< c‎ | thread
 
C
 
Concurrency support library
Defined in header <threads.h>
thrd_t thrd_current( void );
(since C11)

Returns the identifier of the calling thread.

Contents

[edit] Parameters

(none)

[edit] Return value

The identifier of the calling thread.

[edit] References

  • C17 standard (ISO/IEC 9899:2018):
  • 7.26.5.2 The thrd_current function (p: 279)
  • C11 standard (ISO/IEC 9899:2011):
  • 7.26.5.2 The thrd_current function (p: 383)

[edit] See also

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant