FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kSvNode_WaitForShutdown ( kSvNode  node,
k64u  timeout 
)

Blocks until this node is ready for shutdown.

This function is typically called after kSvNode_StartServices to wait for node activities to complete. Node activies normally run indefinitely, and complete only when a reset command is given to the node via the kNode_Reset function.

This function can be used sucessfully only once per node object. After the first time that this function returns kOK, any subsequent calls to this function will produce undefined behaviour.

Use of this function is technically optional. Alternatively, it is possible to explicitly terminate node services by destroying this kSvNode instance.

Parameters
nodeNode object.
timeoutTimeout value (or kINFINITE to wait indefinitely).
Returns
Operation status.