Changeset cf5e86e in mainline for uspace/lib/c/include/adt/prodcons.h


Ignore:
Timestamp:
2011-06-01T17:48:03Z (14 years ago)
Author:
Martin Sucha <sucha14@…>
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.
Message:

Merge mainline changes

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/adt/prodcons.h

    r9bd5746 rcf5e86e  
    11/*
    2  * Copyright (c) 2009 Martin Decky
     2 * Copyright (c) 2011 Martin Decky
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 #include <test.h>
     29/** @addtogroup libc
     30 * @{
     31 */
     32/** @file
     33 */
    3034
    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
     41typedef struct {
     42        fibril_mutex_t mtx;
     43        fibril_condvar_t cv;
     44        link_t list;
     45} prodcons_t;
     46
     47extern void prodcons_initialize(prodcons_t *);
     48extern void prodcons_produce(prodcons_t *, link_t *);
     49extern link_t *prodcons_consume(prodcons_t *);
     50
     51#endif
     52
     53/** @}
     54 */
Note: See TracChangeset for help on using the changeset viewer.