root/Whitix/trunk/include/cbuffer.h
| Revision 2001, 238 bytes (checked in by mwhitworth, 3 years ago) |
|---|
| Line | |
|---|---|
| 1 | #ifndef CBUFFER_H |
| 2 | #define CBUFFER_H |
| 3 | |
| 4 | struct CircBuffer |
| 5 | { |
| 6 | int lock; |
| 7 | struct WaitQueue waitQueue; |
| 8 | char* base; |
| 9 | unsigned int start; |
| 10 | int size; |
| 11 | int maxSize; |
| 12 | }; |
| 13 | |
| 14 | /* API */ |
| 15 | int CircBufferInit(struct CircBuffer* buffer, int maxSize); |
| 16 | |
| 17 | #endif |
Note: See TracBrowser
for help on using the browser.
