Changes in kernel/generic/src/synch/workqueue.c [b7fd2a0:63e27ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/synch/workqueue.c
rb7fd2a0 r63e27ef 38 38 39 39 #include <assert.h> 40 #include <errno.h>41 40 #include <synch/workqueue.h> 42 41 #include <synch/spinlock.h> … … 257 256 * workq_stop(). 258 257 */ 259 boolworkq_init(struct work_queue *workq, const char *name)258 int workq_init(struct work_queue *workq, const char *name) 260 259 { 261 260 workq_preinit(workq, name); … … 395 394 * See workq_enqueue_noblock() for more details. 396 395 */ 397 boolworkq_global_enqueue_noblock(work_t *work_item, work_func_t func)396 int workq_global_enqueue_noblock(work_t *work_item, work_func_t func) 398 397 { 399 398 return workq_enqueue_noblock(&g_work_queue, work_item, func); … … 404 403 * See workq_enqueue() for more details. 405 404 */ 406 boolworkq_global_enqueue(work_t *work_item, work_func_t func)405 int workq_global_enqueue(work_t *work_item, work_func_t func) 407 406 { 408 407 return workq_enqueue(&g_work_queue, work_item, func); … … 427 426 * @return true Otherwise. func() will be invoked in a separate thread. 428 427 */ 429 boolworkq_enqueue_noblock(struct work_queue *workq, work_t *work_item,428 int workq_enqueue_noblock(struct work_queue *workq, work_t *work_item, 430 429 work_func_t func) 431 430 { … … 447 446 * @return true Otherwise. func() will be invoked in a separate thread. 448 447 */ 449 boolworkq_enqueue(struct work_queue *workq, work_t *work_item, work_func_t func)448 int workq_enqueue(struct work_queue *workq, work_t *work_item, work_func_t func) 450 449 { 451 450 return _workq_enqueue(workq, work_item, func, true); … … 895 894 896 895 while (list_empty(&info->work_queues) && !stop) { 897 errno_t ret = _condvar_wait_timeout_irq_spinlock(&info->req_cv,896 int ret = _condvar_wait_timeout_irq_spinlock(&info->req_cv, 898 897 &info->lock, SYNCH_NO_TIMEOUT, SYNCH_FLAGS_INTERRUPTIBLE); 899 898 900 stop = (ret == E INTR);899 stop = (ret == ESYNCH_INTERRUPTED); 901 900 } 902 901
Note:
See TracChangeset
for help on using the changeset viewer.