2-12
SOMobjects Base Toolkit: Programmer’s Reference Manual
SOMD_Uninit Function
Purpose
Free system resources allocated for use by DSOM.
C Syntax
void SOMD_Uninit (Environment* env);
Description
Frees system resources (such as, shared memory segments, semaphores) allocated to the
calling process for use by DSOM. This function should be called before a process exits, to
ensure system resources are reused.
No DSOM functions or methods should be called after SOMD_Uninit has been called. After
SOMD_Uninit is called, the program can be reinitialized by calling SOMD_Init.
(SOMD_Uninit would then need to be called again before program termination, to
uninitialize the program.)
Parameters
env A pointer to the Environment structure for the caller.
Example
#include <somd.h>
Environment ev;
/* initialize Environment */
SOM_InitEnvironment(&ev);
/* initialize DSOM runtime */
SOMD_Init(&ev);
...
/* Free DSOM resources */
SOMD_Uninit(&ev);
Related Information
See Chapter 6 on DSOM in the SOM Toolkit User’s Guide.
Kommentare zu diesen Handbüchern