W3cubDocs

/Nim

Module sharedlist

Shared list support.

Imports

locks

Types

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

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.
proc add[A](x: var SharedList[A]; y: A)
proc init[A](t: var SharedList[A])
proc clear[A](t: var SharedList[A])
unequals operator. This is a shorthand for not (x == y).
proc deinitSharedList[A](t: var SharedList[A])
proc initSharedList[A](): SharedList[A] {...}{.deprecated.}
Deprecated. Use init instead. This is not posix compliant, may introduce undefined behavior.

Iterators

iterator items[A](x: var SharedList[A]): A
unequals operator. This is a shorthand for not (x == y).

© 2006–2018 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/sharedlist.html