Changeset cf5e86e in mainline for uspace/lib/c/include/adt/prodcons.h
- Timestamp:
- 2011-06-01T17:48:03Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 18626b3
- Parents:
- 9bd5746 (diff), 5d1b3aa (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 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/adt/prodcons.h
r9bd5746 rcf5e86e 1 1 /* 2 * Copyright (c) 20 09Martin Decky2 * Copyright (c) 2011 Martin Decky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 #include <test.h> 29 /** @addtogroup libc 30 * @{ 31 */ 32 /** @file 33 */ 30 34 31 const char *test_sse1(void) 32 { 33 return NULL; 34 } 35 #ifndef LIBC_PRODCONS_H_ 36 #define LIBC_PRODCONS_H_ 37 38 #include <adt/list.h> 39 #include <fibril_synch.h> 40 41 typedef struct { 42 fibril_mutex_t mtx; 43 fibril_condvar_t cv; 44 link_t list; 45 } prodcons_t; 46 47 extern void prodcons_initialize(prodcons_t *); 48 extern void prodcons_produce(prodcons_t *, link_t *); 49 extern link_t *prodcons_consume(prodcons_t *); 50 51 #endif 52 53 /** @} 54 */
Note:
See TracChangeset
for help on using the changeset viewer.