Ignore:
File:
1 edited

Legend:

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

    r83dab11 rb7fd2a0  
    3636#define KERN_SEMAPHORE_H_
    3737
     38#include <errno.h>
    3839#include <stdint.h>
    3940#include <synch/waitq.h>
     
    5455
    5556#define semaphore_down_interruptable(s) \
    56         (ESYNCH_INTERRUPTED != _semaphore_down_timeout((s), SYNCH_NO_TIMEOUT, \
    57                 SYNCH_FLAGS_INTERRUPTIBLE))
     57        (_semaphore_down_timeout((s), SYNCH_NO_TIMEOUT, \
     58                SYNCH_FLAGS_INTERRUPTIBLE) != EINTR)
    5859
    5960extern void semaphore_initialize(semaphore_t *, int);
    60 extern int _semaphore_down_timeout(semaphore_t *, uint32_t, unsigned int);
     61extern errno_t _semaphore_down_timeout(semaphore_t *, uint32_t, unsigned int);
    6162extern void semaphore_up(semaphore_t *);
    6263extern int semaphore_count_get(semaphore_t *);
Note: See TracChangeset for help on using the changeset viewer.