tibasSpace_Take()

Returns and atomically removes from the space the tuple (if one exists) whose tuple key fields match the key fields of the tuple provided.

Declaration

tibas_status tibasSpace_Take
(tibasSpace space,
tibasTuple* value,
tibasTuple  key)

Parameters

Parameter Description
space The Space object from which you want to take a tuple.
value Returns the tuple whose key fields match the key fields of the key provided (if the tuple exists).
key The tuple containing the key fields to look for.

Remarks

Use the tibasSpace_Take() function to return and atomically remove from the space the tuple (if one exists) whose tuple key fields match the key fields of the tuple provided.