我要评分
获取效率
正确性
完整性
易理解

HTL_thread_pool_free

Releases a thread pool.

Interface Definition

int HTL_thread_pool_free(HTL_thread_pool_t *thread_pool);

Description

HTL_thread_pool_free() releases thread pool resources and sets thread_pool to HTL_THREAD_POOL_NULL.

Parameters

Parameter

Type

Description

Input/Output

thread_pool

HTL_thread_pool_t *

Address of the handle to the thread pool.

Output

Return Value

  • HTL_THREAD_SUCCESS: success.
  • Other values: failure. For details, see the error code descriptions.

Example

    ret = HTL_thread_pool_free(&pool);