.

CacheServiceConfigDEFAULT

Definition

 
const extern CacheServiceConfig CacheServiceConfigDEFAULT =
{
    NULL,                               /* errorHandler    */
    -1,                                 /* errorThreshold  */
    -1,                                 /* priority        */
    0,                                  /* sleepTime       */
    MPIControlMAX_STATUS_CACHE_INTERVAL /* refreshInterval */
} CacheServiceConfigDEFAULT;
  Required Header: apputil.h
Change History: Added in 03.04.11

Description

A set of default values for the CacheServiceConfig structure.sd. The default values will be used if NULL is passed to CacheServiceCreate. A user can also use CacheServiceConfigDEFAULT to initialize their own instance of a CacheServiceConfig variable, then change only the parameters he or she is interested in changing

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);

See Also

CacheServiceCreate

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering