# sharedlist

Dark Mode

- Manual
- Standard library
- Index

Search:
Group by:

Shared list support.

Unstable API.

# Imports

locks

# Types

    SharedList[A] = object
      head, tail: SharedListNode[A]
      lock*: Lock

  generic shared list Source Edit

# Procs

    proc iterAndMutate[A](x: var SharedList[A]; action: proc (x: A): bool)

  iterates over the list. If 'action' returns true, the current item is removed from the list. Source Edit

    proc add[A](x: var SharedList[A]; y: A)

  Source Edit

    proc init[A](t: var SharedList[A])

  Source Edit

    proc clear[A](t: var SharedList[A])

  Source Edit

    proc deinitSharedList[A](t: var SharedList[A])

  Source Edit

    proc initSharedList[A](): SharedList[A] {...}{.deprecated: "use \'init\' instead".}

  Deprecated: use 'init' instead
  This is not posix compliant, may introduce undefined behavior. Source Edit

# Iterators

    iterator items[A](x: var SharedList[A]): A

  Source Edit