Ignore:
File:
1 edited

Legend:

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

    rb7398c0 rd99c1d2  
    4646} wakeup_mode_t;
    4747
    48 /** Wait queue structure.
    49  *
    50  */
     48/** Wait queue structure. */
    5149typedef struct {
     50
    5251        /** Lock protecting wait queue structure.
    5352         *
    5453         * Must be acquired before T.lock for each T of type thread_t.
    5554         */
    56         IRQ_SPINLOCK_DECLARE(lock);
    57        
     55        SPINLOCK_DECLARE(lock);
     56
    5857        /**
    5958         * Number of waitq_wakeup() calls that didn't find a thread to wake up.
    60          *
    6159         */
    6260        int missed_wakeups;
    63        
    6461        /** List of sleeping threads for wich there was no missed_wakeup. */
    6562        link_t head;
     
    7269
    7370extern void waitq_initialize(waitq_t *);
    74 extern int waitq_sleep_timeout(waitq_t *, uint32_t, unsigned int);
     71extern int waitq_sleep_timeout(waitq_t *, uint32_t, int);
    7572extern ipl_t waitq_sleep_prepare(waitq_t *);
    76 extern int waitq_sleep_timeout_unsafe(waitq_t *, uint32_t, unsigned int);
     73extern int waitq_sleep_timeout_unsafe(waitq_t *, uint32_t, int);
    7774extern void waitq_sleep_finish(waitq_t *, int, ipl_t);
    7875extern void waitq_wakeup(waitq_t *, wakeup_mode_t);
     
    8077extern void waitq_interrupt_sleep(struct thread *);
    8178extern void waitq_unsleep(waitq_t *);
    82 extern int waitq_count_get(waitq_t *);
    83 extern void waitq_count_set(waitq_t *, int val);
    8479
    8580#endif
Note: See TracChangeset for help on using the changeset viewer.