Crate parking_lot_core

source ·

Modules§

  • [Experimental] Deadlock detection

Structs§

  • A value associated with a parked thread which can be used by unpark_filter.
  • A counter used to perform exponential backoff in spin loops.
  • Result of an unpark operation.
  • A value which is passed from an unparker to a parked thread.

Enums§

  • Operation that unpark_filter should perform for each thread.
  • Result of a park operation.
  • Operation that unpark_requeue should perform.

Constants§

Functions§

  • park
    Parks the current thread in the queue associated with the given key.
  • Unparks all threads in the queue associated with the given key.
  • Unparks a number of threads from the front of the queue associated with key depending on the results of a filter function which inspects the ParkToken associated with each thread.
  • Unparks one thread from the queue associated with the given key.
  • Removes all threads from the queue associated with key_from, optionally unparks the first one and requeues the rest onto the queue associated with key_to.