Changeset 668f8cbf in mainline
- Timestamp:
- 2010-10-19T18:44:01Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3e20fd48
- Parents:
- a7a85d16
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/fibril_synch.h
ra7a85d16 r668f8cbf 43 43 44 44 typedef struct { 45 fibril_t *owned_by; 46 } fibril_owner_info_t; 47 48 typedef struct { 49 fibril_owner_info_t oi; /* Keep this the first thing. */ 45 50 int counter; 46 51 link_t waiters; … … 49 54 #define FIBRIL_MUTEX_INITIALIZER(name) \ 50 55 { \ 56 .oi = { \ 57 .owned_by = NULL \ 58 }, \ 51 59 .counter = 1, \ 52 60 .waiters = { \ … … 60 68 61 69 typedef struct { 70 fibril_owner_info_t oi; /* Keep this the first thing. */ 62 71 unsigned writers; 63 72 unsigned readers; … … 67 76 #define FIBRIL_RWLOCK_INITIALIZER(name) \ 68 77 { \ 78 .oi = { \ 79 .owned_by = NULL \ 80 }, \ 69 81 .readers = 0, \ 70 82 .writers = 0, \
Note:
See TracChangeset
for help on using the changeset viewer.