NOVA User-Level Environment
Version testbox/changed-memory-timing-317-g320d8b5
|
Packet producer that supports variable sized packets. More...
#include <consumer.h>
Public Member Functions | |
PacketProducer (PacketConsumer< SIZE > *consumer=0, unsigned cap_nq=0) | |
bool | produce (const unsigned char *buf, unsigned len) |
Put something in the buffer. | |
Public Member Functions inherited from Producer< unsigned, SIZE > | |
bool | produce (unsigned &value) |
Put something in the buffer. | |
unsigned | sm () |
Producer (Consumer< unsigned, SIZE > *consumer=0, unsigned nq=0) |
Private Types | |
typedef Producer< unsigned, SIZE > | Parent |
Additional Inherited Members | |
Protected Attributes inherited from Producer< unsigned, SIZE > | |
Consumer< unsigned, SIZE > * | _consumer |
KernelSemaphore | _sem |
bool | _dropping |
Packet producer that supports variable sized packets.
|
private |
|
inline |
|
inline |
Put something in the buffer.
Please note that this function is not locked, thus only a single producer should do the access at the very same time.