Increments the block count a specified number of times.
void __cdecl GCDisableMultiple(int cDisable);
cDisable | The number of times to increment the block count. |
This function is useful when you have previously called GCEnableCompletely to allow garbage collection on all referenced objects, but later want to reinstate the block count with one call. The following example shows enabling garbage collection around a sleep call.
int nEnable = GCEnableCompletely(); Sleep( (int) millis ); GCDisableMultiple(nEnable);