cacheServiceDelete
Declaration
MPI_RESULT cacheServiceDelete(CacheService cacheService);
Change History: Added in 03.04.11
Description
cacheServiceDelete alerts the CacheService object thread that it should end, waits for the thread to end, and frees the memory allocated to cacheService.
| cacheService | The handle to the CacheService object to delete |
|---|
| Return Values | |
|---|---|
| MPIMessageOK | Upon success. |
Sample Code
Using CacheServiceConfigDEFAULT to initialize a CacheSeriveConfig variable.
MPIControl control;
CacheService cacheService;
CacheServiceConfig cacheServiceConfig = CacheServiceConfigDEFAULT;
/* create and initialize controller */
cacheServiceConfig.sleepTime = 20; /* milliseconds */
cacheService = CacheServiceCreate(control, &cacheServiceConfig);
