_set_sbh_threshold
Sets the upper limit for the size of a memory allocation that will be supported by the small-block heap.
int_set_sbh_threshold(size_tsize**);**
Routine | Required Header | Compatibility |
_set_sbh_threshold | <malloc.h> | Win 95, Win NT |
For additional compatibility information, see Compatibility in the Introduction.
Libraries
LIBC.LIB | Single thread static library, retail version |
LIBCMT.LIB | Multithread static library, retail version |
MSVCRT.LIB | Import library for MSVCRT.DLL, retail version |
Return Value
_set_sbh_threshold returns 1 if the operation of setting the small-block threshold size is successful. It returns 0 if the input threshold size is too big.
Parameter
size the new small-block threshold size to be set
Remarks
This function takes a user specified small-block threshold size as input, and sets the current small-block threshold size to that value. The small-block heap threshold size can be set to any multiples of 16, from 0 to 1920 bytes for Windows 95 and all Windows NT platforms except the DEC Alpha, and from 0 to 3616 bytes for DEC Alpha platforms.
See Also _get_sbh_thresold