Namespaces
Variants
Actions

thrd_success, thrd_timedout, thrd_busy, thrd_nomem, thrd_error

From cppreference.com
< c‎ | thread
 
C
 
Concurrency support library
Defined in header <threads.h>
enum {

    thrd_success = /* unspecified */,
    thrd_nomem = /* unspecified */,
    thrd_timedout = /* unspecified */,
    thrd_busy = /* unspecified */,
    thrd_error = /* unspecified */

};
(since C11)

Identifiers for thread states and errors.

Constant Explanation
thrd_success indicates successful return value
thrd_nomem indicates unsuccessful return value due to out of memory condition
thrd_timedout indicates timed out return value
thrd_busy indicates unsuccessful return value due to resource temporary unavailable
thrd_error indicates unsuccessful return value

[edit] References

  • C17 standard (ISO/IEC 9899:2018):
  • 7.26.1/5 thrd_success, thrd_timedout, ... (p: 275)
  • C11 standard (ISO/IEC 9899:2011):
  • 7.26.1/5 thrd_success, thrd_timedout, ... (p: 377)

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