Function nvcvConfigSetMaxAllocatorCount

Function Documentation

NVCVStatus nvcvConfigSetMaxAllocatorCount(int32_t maxCount)

Set a hard limit on the number of allocator handles that can be created.

The function will preallocate all resources necessary to satisfy creation of a limited number of allocator handles in the future.

Parameters:

maxCount[in] Maximum number of allocator handles that can be created. If negative, switches to dynamic allocation, no hard limit is defined.

  • There must be no allocator handles created and not destroyed.

Return values:
  • NVCV_ERROR_INVALID_ARGUMENT – Some parameter is outside its valid range.

  • NVCV_SUCCESS – Operation executed successfully.