void vortex_exit ( void   ) 

Terminates vortex library function.

Stops all internal vortex process and all allocated resources. It also close all channels for all connection that where not closed until call this function.

This function is reentrant, allowing several threads to call vortex_exit function at the same time. Only one thread will actually release resources allocated.

NOTE: Although it isn't explicitly stated, this function shouldn't be called from inside a handler notification: Frame Receive, Channel close, etc. This is because those handlers works indise the context of the vortex library execution. Making a call to this function in the middle of that context, will produce undefined behaviours.

NOTE2: This function isn't designed to dealloc all resources used by the vortex function. According to the particular control structure of your application, you must first terminate using any Vortex API and then call to vortex_exit.