Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

kQueue Struct Reference

Message Queue. More...

#include <share.h>

Collaboration diagram for kQueue:

Collaboration graph
[legend]
List of all members.

Public Attributes

kMutex lock
 lock for data integrity

kSemaphoremsg
 number of messages / process waiting for a read

kSemaphoreleft
 amount of left entries / process waiting for a write

kMsgdat
 array for data holding

int readnext
 next item to be read

int writenext
 next slot to be written

int places
 total amount of available slots

kmsgMode mode
 overflow behaviour

int xsize
void * xbase

Detailed Description

Message Queue.

The message queue is managed as a circular buffer with two access pointers (one for reading out, the other for writing in). It is managed in a FIFO fashion, threads that attempt to read out of an empty queue or writing to a full queue are turned in wait state.


Member Data Documentation

struct kMsg* kQueue::dat
 

array for data holding

kSemaphore* kQueue::left
 

amount of left entries / process waiting for a write

struct kMutex kQueue::lock
 

lock for data integrity

kmsgMode kQueue::mode
 

overflow behaviour

kSemaphore* kQueue::msg
 

number of messages / process waiting for a read

int kQueue::places
 

total amount of available slots

int kQueue::readnext
 

next item to be read

int kQueue::writenext
 

next slot to be written

void* kQueue::xbase
 

int kQueue::xsize
 


The documentation for this struct was generated from the following file:
Generated on Mon Jul 14 17:00:58 2003 for Clicker32Kernel by doxygen1.2.18