qeq_init.c File Reference

QEQueue_init() definition. This function is used both for Active Object queues and for the "raw" thread-safe queues. More...

#include "qf_pkg.h"

Go to the source code of this file.

Functions

void QEQueue_init (QEQueue *me, QEvent const *qSto[], QEQueueCtr qLen)
 Initializes the native QF event queue.


Detailed Description

QEQueue_init() definition. This function is used both for Active Object queues and for the "raw" thread-safe queues.

Definition in file qeq_init.c.


Function Documentation

void QEQueue_init ( QEQueue me,
QEvent const *  qSto[],
QEQueueCtr  qLen 
)

Initializes the native QF event queue.

The parameters are as follows: me points to the QEvent struct to be initialized, qSto[] is the ring buffer storage, qLen is the length of the ring buffer in the units of event-pointers.

Note:
The actual capacity of the queue is qLen + 1, because of the extra location fornEvt.

Definition at line 38 of file qeq_init.c.

References QEQueue::end, QEQueue::frontEvt, QEQueue::head, QEQueue::nFree, QEQueue::nMin, QS_BEGIN_, QS_END_, QS_EQC_, QS_eqObj_, QS_INT_LOCK_KEY_, QS_OBJ_, QS_QF_EQUEUE_INIT, QEQueue::ring, and QEQueue::tail.

Referenced by QActive_start().


Generated on Fri Aug 1 14:15:09 2008 for QP/C by  doxygen 1.5.4