Ignore:
Timestamp:
2007-01-22T14:45:07Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
51baa8a
Parents:
726e1043
Message:

typedef elimination

File:
1 edited

Legend:

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

    r726e1043 re71a61d  
    4242#include <synch/spinlock.h>
    4343
    44 enum rwlock_type {
     44typedef enum {
    4545        RWLOCK_NONE,
    4646        RWLOCK_READER,
    4747        RWLOCK_WRITER
    48 };
     48} rwlock_type_t;
    4949
    50 struct rwlock {
     50typedef struct {
    5151        SPINLOCK_DECLARE(lock);
    5252        mutex_t exclusive;      /**< Mutex for writers, readers can bypass it if readers_in is positive. */
    5353        count_t readers_in;     /**< Number of readers in critical section. */
    54 };
     54} rwlock_t;
    5555
    5656#define rwlock_write_lock(rwl) \
Note: See TracChangeset for help on using the changeset viewer.