Ignore:
Timestamp:
2012-07-06T13:04:04Z (12 years ago)
Author:
Adam Hraska <adam.hraska+hos@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
518dd43
Parents:
ef1603b
Message:

synch: Condvars can now wait with spinlocks and not just a mutex.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/synch/condvar.h

    ref1603b r46a5b37  
    3939#include <synch/waitq.h>
    4040#include <synch/mutex.h>
     41#include <synch/spinlock.h>
    4142#include <abi/synch.h>
    4243
     
    5556extern int _condvar_wait_timeout(condvar_t *cv, mutex_t *mtx, uint32_t usec,
    5657    int flags);
     58extern int _condvar_wait_timeout_spinlock(condvar_t *cv, spinlock_t *lock,
     59        uint32_t usec, int flags);
     60extern int _condvar_wait_timeout_irq_spinlock(condvar_t *cv,
     61        irq_spinlock_t *irq_lock, uint32_t usec, int flags);
     62
    5763
    5864#endif
Note: See TracChangeset for help on using the changeset viewer.