Cmpsetatom

From OpenEUO
Revision as of 11:01, 8 October 2010 by 76.184.213.234 (Talk) (Created page with " local bsuccess = cmpsetatom(str, ev, nv) Compares an atomic variable of name given by string str, with a value ev. If the comparison holds true, the variable will be set to the...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
local bsuccess = cmpsetatom(str, ev, nv)

Compares an atomic variable of name given by string str, with a value ev. If the comparison holds true, the variable will be set to the third parameter value, nv. nv can be a string or a number. cmpsetatom returns a boolean denoting whether or not the comparison held true.