arc

Source   Edit  

Procs

proc atomicDecRef(p: ref; order: AtomMemModel = ATOMIC_SEQ_CST): int
returns the old value Source   Edit  
proc atomicIncRef(p: ref; order: AtomMemModel = ATOMIC_SEQ_CST): int
returns the old value Source   Edit  
proc atomicRC(p: ref; n: int; order: AtomMemModel = ATOMIC_SEQ_CST)
sets the rc to the provided value Source   Edit  
proc atomicRC(p: ref; order: AtomMemModel = ATOMIC_SEQ_CST): int
returns the current rc Source   Edit  

Templates

template isIsolated(p: ref; order: AtomMemModel = ATOMIC_SEQ_CST): bool
true if the ref is the sole owner Source   Edit