axl_bool myqtt_thread_pool_new_task ( MyQttCtx ctx,
MyQttThreadFunc  func,
axlPointer  data 
)

*** DEPRECATED** Queue a new task inside the MyQttThreadPool.

Use myqtt_thread_pool_new_task_full to provide a data destroy function to ensure no leak happens when context is stopped with pending tasks.

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.
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_thread_pool_new_task_full().

Referenced by myqtt_conn_reconnect(), and myqtt_storage_queued_flush().