axl_bool myqtt_thread_pool_new_task_full ( MyQttCtx ctx,
MyQttThreadFunc  func,
axlPointer  data,
axlDestroyFunc  destroy_data 
)

Queue a new task inside the MyQttThreadPool.

Queue a new task to be performed. This function is used by myqtt for internal purpose so it should not be useful for myqtt library consumers.

Parameters
ctxThe context where the operation will be performed.
functhe function to execute.
datathe data to be passed in to the function.
destroy_dataData destroy function called when the task finally is not executed because MyQttCtx is finishing or finished. This function is not called when task was finally called.
Returns
axl_true in the case the task was queued. Otherwise axl_false is reported. The function returns axl_false the the thread pool is being stopped and or memory allocation failure.

References myqtt_async_queue_push().

Referenced by myqtt_thread_pool_new_task().