SDK API > BS2_SetMaxThreadCount
Specifies the maximum thread count.
#include "BS_API.h" int BS2_SetMaxThreadCount(void* context, uint32_t maxThreadCount);
context
: ContextmaxThreadCount
: Maximum thread count
NOTE
The default thread count is 4*cpu core. You can't set this lower than 8.
If successfully done, BS_SDK_SUCCESS
will be returned.
If there is an error, the corresponding error code will be returned.