Module std::sys_common::once::futex

source ·

Structs

Constants

  • COMPLETE 🔒
    Initialization has completed and all future calls should finish immediately.
  • INCOMPLETE 🔒
    No initialization has run yet, and no thread is currently using the Once.
  • POISONED 🔒
    Some thread has previously attempted to initialize the Once, but it panicked, so the Once is now poisoned. There are no other threads currently accessing this Once.
  • QUEUED 🔒
    Some thread is currently attempting to run initialization and there are threads waiting for it to finish.
  • RUNNING 🔒
    Some thread is currently attempting to run initialization. It may succeed, so all future threads need to wait for it to finish.