Changeset 1b20da0 in mainline for uspace/lib/c/include/adt/fifo.h
- Timestamp:
- 2018-02-28T17:52:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3061bc1
- Parents:
- df6ded8
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/adt/fifo.h
rdf6ded8 r1b20da0 78 78 * 79 79 * FIFO is allocated dynamically. 80 * This macro is suitable for creating larger FIFOs. 80 * This macro is suitable for creating larger FIFOs. 81 81 * 82 82 * @param name Name of FIFO. … … 113 113 */ 114 114 #define fifo_push(name, value) \ 115 name.fifo[name.tail = (name.tail + 1) < name.items ? (name.tail + 1) : 0] = (value) 115 name.fifo[name.tail = (name.tail + 1) < name.items ? (name.tail + 1) : 0] = (value) 116 116 117 117 /** Allocate memory for dynamic FIFO.
Note:
See TracChangeset
for help on using the changeset viewer.