Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/synch/workqueue.c

    rb7fd2a0 r63e27ef  
    3838
    3939#include <assert.h>
    40 #include <errno.h>
    4140#include <synch/workqueue.h>
    4241#include <synch/spinlock.h>
     
    257256 * workq_stop().
    258257 */
    259 bool workq_init(struct work_queue *workq, const char *name)
     258int workq_init(struct work_queue *workq, const char *name)
    260259{
    261260        workq_preinit(workq, name);
     
    395394 * See workq_enqueue_noblock() for more details.
    396395 */
    397 bool workq_global_enqueue_noblock(work_t *work_item, work_func_t func)
     396int workq_global_enqueue_noblock(work_t *work_item, work_func_t func)
    398397{
    399398        return workq_enqueue_noblock(&g_work_queue, work_item, func);
     
    404403 * See workq_enqueue() for more details.
    405404 */
    406 bool workq_global_enqueue(work_t *work_item, work_func_t func)
     405int workq_global_enqueue(work_t *work_item, work_func_t func)
    407406{
    408407        return workq_enqueue(&g_work_queue, work_item, func);
     
    427426 * @return true  Otherwise. func() will be invoked in a separate thread.
    428427 */
    429 bool workq_enqueue_noblock(struct work_queue *workq, work_t *work_item,
     428int workq_enqueue_noblock(struct work_queue *workq, work_t *work_item,
    430429        work_func_t func)
    431430{
     
    447446 * @return true  Otherwise. func() will be invoked in a separate thread.
    448447 */
    449 bool workq_enqueue(struct work_queue *workq, work_t *work_item, work_func_t func)
     448int workq_enqueue(struct work_queue *workq, work_t *work_item, work_func_t func)
    450449{
    451450        return _workq_enqueue(workq, work_item, func, true);
     
    895894       
    896895        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,
    898897                        &info->lock, SYNCH_NO_TIMEOUT, SYNCH_FLAGS_INTERRUPTIBLE);
    899898               
    900                 stop = (ret == EINTR);
     899                stop = (ret == ESYNCH_INTERRUPTED);
    901900        }
    902901       
Note: See TracChangeset for help on using the changeset viewer.