MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_workqueue_destroy

Function rt_workqueue_destroy

components/drivers/ipc/workqueue.c:254–264  ·  view source on GitHub ↗

* @brief Destroy a work queue. * * @param queue is a pointer to the workqueue object. * * @return RT_EOK Success. */

Source from the content-addressed store, hash-verified

252 * @return RT_EOK Success.
253 */
254rt_err_t rt_workqueue_destroy(struct rt_workqueue *queue)
255{
256 RT_ASSERT(queue != RT_NULL);
257
258 rt_workqueue_cancel_all_work(queue);
259 rt_thread_delete(queue->work_thread);
260 rt_sem_detach(&(queue->sem));
261 RT_KERNEL_FREE(queue);
262
263 return RT_EOK;
264}
265
266/**
267 * @brief Submit a work item to the work queue without delay.

Callers 15

rt_sdhci_uninit_hostFunction · 0.85
do_work_testFunction · 0.85
do_delay_work_testFunction · 0.85
cancle_work_test01Function · 0.85
cancle_work_test02Function · 0.85
cancle_work_test03Function · 0.85
cancle_work_test04Function · 0.85
cancle_delay_work_test01Function · 0.85
repeat_work_test01Function · 0.85
repeat_work_test02Function · 0.85
repeat_work_test03Function · 0.85
repeat_delay_work_test01Function · 0.85

Calls 3

rt_thread_deleteFunction · 0.85
rt_sem_detachFunction · 0.85

Tested by

no test coverage detected