Changeset d5a89a3 in mainline for uspace/lib/c/include/fibril_synch.h
- Timestamp:
- 2019-02-11T22:31:04Z (6 years ago)
- Children:
- aaf9789c
- Parents:
- e3272101 (diff), 4805495 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/fibril_synch.h
re3272101 rd5a89a3 33 33 */ 34 34 35 #ifndef LIBC_FIBRIL_SYNCH_H_36 #define LIBC_FIBRIL_SYNCH_H_35 #ifndef _LIBC_FIBRIL_SYNCH_H_ 36 #define _LIBC_FIBRIL_SYNCH_H_ 37 37 38 38 #include <fibril.h> 39 39 #include <adt/list.h> 40 #include <tls.h>41 40 #include <time.h> 42 41 #include <stdbool.h> … … 54 53 }, \ 55 54 .counter = 1, \ 56 .waiters = { \ 57 .head = { \ 58 .prev = &(name).waiters.head, \ 59 .next = &(name).waiters.head, \ 60 } \ 61 } \ 55 .waiters = LIST_INITIALIZER((name).waiters), \ 62 56 } 63 57 … … 79 73 .readers = 0, \ 80 74 .writers = 0, \ 81 .waiters = { \ 82 .head = { \ 83 .prev = &(name).waiters.head, \ 84 .next = &(name).waiters.head, \ 85 } \ 86 } \ 75 .waiters = LIST_INITIALIZER((name).waiters), \ 87 76 } 88 77 … … 96 85 #define FIBRIL_CONDVAR_INITIALIZER(name) \ 97 86 { \ 98 .waiters = { \ 99 .head = { \ 100 .next = &(name).waiters.head, \ 101 .prev = &(name).waiters.head, \ 102 } \ 103 } \ 87 .waiters = LIST_INITIALIZER((name).waiters), \ 104 88 } 105 89 … … 153 137 { \ 154 138 .count = (cnt), \ 155 .waiters = { \ 156 .head = { \ 157 .next = &(name).waiters.head, \ 158 .prev = &(name).waiters.head, \ 159 } \ 160 } \ 139 .waiters = LIST_INITIALIZER((name).waiters), \ 161 140 } 162 141
Note:
See TracChangeset
for help on using the changeset viewer.