OpenDOF Project
void DOF_Destroy ( DOF  self)

Frees resources allocated during the creation of a DOF.

This call must be made for each created DOF when the DOF is no longer required—usually during program termination.

In addition to deallocating memory, calls to _Destroy functions in the API stop threads and attempt to clean up state associated with objects. When destroying a DOF, you should follow these steps:

  1. Call DOF_SetNodeDown.
  2. Destroy all components other than the DOF that have not been destroyed previously. This may include multiple calls to any or all of the following:
  3. Finally, call DOF_Destroy.

The DOF_Destroy function runs asynchronously. There is no guarantee that the DOF has finished being destroyed when this function returns. Any attempt to use a destroyed DOF will result in undefined behavior.

Parameters
selfThe DOF instance to destroy. If the value is NULL, no action is taken.
See Also
DOF_Create
DOF_Shutdown
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22