Generic NOVA producer/consumer code based on shared memory and semaphores. More...
#include <consumer.h>
Public Member Functions | |
| bool | has_data () const |
| T * | get_buffer () |
| void | free_buffer () |
| Consumer () | |
Public Attributes | |
| volatile unsigned | _rpos |
| volatile unsigned | _wpos |
| T | _buffer [SIZE] |
Generic NOVA producer/consumer code based on shared memory and semaphores.
Copyright (C) 2008-2009, Bernhard Kauer <bk@vmmon.org> Economic rights: Technische Universitaet Dresden (Germany)
This file is part of Vancouver.
Vancouver.nova is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
Vancouver.nova is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version 2 for more details. Consumer with fixed items.
| void Consumer< T, SIZE >::free_buffer | ( | ) | [inline] |
Reimplemented in PacketConsumer< SIZE >.
| T* Consumer< T, SIZE >::get_buffer | ( | ) | [inline] |
| bool Consumer< T, SIZE >::has_data | ( | ) | const [inline] |
1.7.1