Namespaces
Variants
Actions

thrd_detach

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

Detaches the thread identified by thr from the current environment. The resources held by the thread will be freed automatically once the thread exits.

Contents

[edit] Parameters

thr - identifier of the thread to detach

[edit] Return value

thrd_success if successful, thrd_error otherwise.

[edit] References

  • C17 standard (ISO/IEC 9899:2018):
  • 7.26.5.3 The thrd_detach function (p: 280)
  • C11 standard (ISO/IEC 9899:2011):
  • 7.26.5.3 The thrd_detach function (p: 383-384)

[edit] See also

blocks until a thread terminates
(function) [edit]

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