next up previous 264
Next: astRealloc - Change the size of a dynamically allocated region of memory
Up: AST Memory Management and Utility Functions
Previous: astMalloc - Allocate memory


astMemCaching - Controls whether allocated but unused memory is cached in this module

Description:
This function sets a flag indicating if allocated but unused memory should be cached or not. It also returns the original value of the flag.

If caching is switched on or off as a result of this call, then the current contents of the cache are discarded.

Note, each thread has a separate cache. Calling this function affects only the currently executing thread.

Synopsis:
int astMemCaching( int newval )
Parameters:
newval
The new value for the MemoryCaching tuning parameter (see astTune in objectc.c). If AST__TUNULL is supplied, the current value is left unchanged.
Returned Value:
astMemCaching()
The original value of the MemoryCaching tuning parameter.


next up previous 264
Next: astRealloc - Change the size of a dynamically allocated region of memory
Up: AST Memory Management and Utility Functions
Previous: astMalloc - Allocate memory

AST A Library for Handling World Coordinate Systems in Astronomy
Starlink User Note 211
R.F. Warren-Smith & D.S. Berry
24th May 2011
E-mail:ussc@star.rl.ac.uk

Copyright (C) 2009 Science \& Technology Facilities Council