solana_type_overrides

Module thread

Source

Structs§

  • An error returned by LocalKey::try_with.
  • Thread factory, which can be used in order to configure the properties of a new thread.
  • An owned permission to join on a thread (block on its termination).
  • A thread local storage key which owns its contents.
  • A scope to spawn scoped threads in.
  • An owned permission to join on a scoped thread (block on its termination).
  • A handle to a thread.
  • A unique identifier for a running thread.

Functions§

  • Returns an estimate of the default amount of parallelism a program should use.
  • Gets a handle to the thread that invokes it.
  • Determines whether the current thread is unwinding because of panic.
  • Blocks unless or until the current thread’s token is made available.
  • Blocks unless or until the current thread’s token is made available or the specified duration has been reached (may wake spuriously).
  • park_timeout_msDeprecated
  • Creates a scope for spawning scoped threads.
  • Puts the current thread to sleep for at least the specified amount of time.
  • sleep_msDeprecated
    Uses sleep.
  • Spawns a new thread, returning a JoinHandle for it.
  • Cooperatively gives up a timeslice to the OS scheduler.
  • add_spawn_hookExperimental
    Registers a function to run for every newly thread spawned.
  • sleep_untilExperimental
    Puts the current thread to sleep until the specified deadline has passed.

Type Aliases§