Changeset 89ea2dc in mainline for kernel/generic/src/synch/workqueue.c
- Timestamp:
- 2017-12-19T17:35:28Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d0c2beb
- Parents:
- 7565a4b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/workqueue.c
r7565a4b r89ea2dc 256 256 * workq_stop(). 257 257 */ 258 intworkq_init(struct work_queue *workq, const char *name)258 bool workq_init(struct work_queue *workq, const char *name) 259 259 { 260 260 workq_preinit(workq, name); … … 394 394 * See workq_enqueue_noblock() for more details. 395 395 */ 396 intworkq_global_enqueue_noblock(work_t *work_item, work_func_t func)396 bool workq_global_enqueue_noblock(work_t *work_item, work_func_t func) 397 397 { 398 398 return workq_enqueue_noblock(&g_work_queue, work_item, func); … … 403 403 * See workq_enqueue() for more details. 404 404 */ 405 intworkq_global_enqueue(work_t *work_item, work_func_t func)405 bool workq_global_enqueue(work_t *work_item, work_func_t func) 406 406 { 407 407 return workq_enqueue(&g_work_queue, work_item, func); … … 426 426 * @return true Otherwise. func() will be invoked in a separate thread. 427 427 */ 428 intworkq_enqueue_noblock(struct work_queue *workq, work_t *work_item,428 bool workq_enqueue_noblock(struct work_queue *workq, work_t *work_item, 429 429 work_func_t func) 430 430 { … … 446 446 * @return true Otherwise. func() will be invoked in a separate thread. 447 447 */ 448 intworkq_enqueue(struct work_queue *workq, work_t *work_item, work_func_t func)448 bool workq_enqueue(struct work_queue *workq, work_t *work_item, work_func_t func) 449 449 { 450 450 return _workq_enqueue(workq, work_item, func, true);
Note:
See TracChangeset
for help on using the changeset viewer.