GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> PBS / V2-12-1 > pbs / rhel5-32


Interface   Data Structures   File List   Data Fields   Globals  

QI_type.h File Reference

Interlocked doubly linked list, que types. More...

#include <PBS/RW_type.h>

Typedefs

typedef enum _QI_type QI_type
 Typedef for enum _QI_type.

Enumerations

enum  _QI_type {
  QI_K_TYPE_LOCKING_ONLY = RW_K_TYPE_LOCKING_ONLY,
  QI_K_TYPE_PENDING = RW_K_TYPE_PENDING,
  QI_K_TYPE_PENDING_WTO = RW_K_TYPE_PENDING_WTO,
  QI_K_TYPE_PENDING_FIFO = RW_K_TYPE_PENDING_FIFO,
  QI_K_TYPE_PENDING_FIFO_WTO = RW_K_TYPE_PENDING_FIFO_WTO,
  QI_K_TYPE_PENDING_PRIORITY = RW_K_TYPE_PENDING_PRIORITY,
  QI_K_TYPE_PENDING_PRIORITY_WTO = RW_K_TYPE_PENDING_PRIORITY_WTO
}
 Enumerates the type Interlocked Ques available. More...


Detailed Description

Interlocked doubly linked list, que types.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: QI_type.h,v 1.5 2011/03/24 23:05:43 apw Exp $

SYNOPSIS
This type predominately determines the behaviour attempts to remove a node from an empty que.


Typedef Documentation

Typedef for enum _QI_type.

The timeout types allow high resolution timeouts to be specified. If this option is not specified, only native (read ticks in VxWorks and all timeouts on POSIX platforms) are allowed.

There are two basic pend types types:

  • FIFO - tasks will be awakened on a FIFO basis
  • PRIORITY - tasks will be awakened on PRIORITY basis.

This controls how the wake-up order when multiple consumers pend on the same PL. In my estimation, this is not a good thing to do, so in almost all case the user should pick either QI_K_TYPE_PENDING or QI_K_TYPE_PENDING_WTO.


Enumeration Type Documentation

enum _QI_type

Enumerates the type Interlocked Ques available.

Enumerator:
QI_K_TYPE_LOCKING_ONLY  Locking mechanism only, no pending mechanism available
QI_K_TYPE_PENDING  Pending mechanism available, single pender/reader only
QI_K_TYPE_PENDING_WTO  Pending with timeouts, single pender/reader only
QI_K_TYPE_PENDING_FIFO  Use FIFO pending order
QI_K_TYPE_PENDING_FIFO_WTO  Use FIFO pending order with timeouts available
QI_K_TYPE_PENDING_PRIORITY  Use PRIORITY pending order
QI_K_TYPE_PENDING_PRIORITY_WTO  Use PRIORITY pending order with timeouts available


Generated on Sat May 21 06:44:09 2011 by  doxygen 1.5.8