GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PBS / V2-10-15

Constituent: test_task     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

LI_type.h File Reference

Interlocked singly linked list, list types. More...

#include "PBS/RW_type.h"

Include dependency graph for LI_type.h:

This graph shows which files directly or indirectly include this file:


Typedefs

typedef enum _LI_type LI_type
 Typedef for enum _LI_type.

Enumerations

enum  _LI_type {
  LI_K_TYPE_LOCKING_ONLY = RW_K_TYPE_LOCKING_ONLY,
  LI_K_TYPE_PENDING = RW_K_TYPE_PENDING,
  LI_K_TYPE_PENDING_WTO = RW_K_TYPE_PENDING_WTO,
  LI_K_TYPE_PENDING_FIFO = RW_K_TYPE_PENDING_FIFO,
  LI_K_TYPE_PENDING_FIFO_WTO = RW_K_TYPE_PENDING_FIFO_WTO,
  LI_K_TYPE_PENDING_PRIORITY = RW_K_TYPE_PENDING_PRIORITY,
  LI_K_TYPE_PENDING_PRIORITY_WTO = RW_K_TYPE_PENDING_PRIORITY_WTO
}
 Enumerates the types Interlocked lists available. More...

Detailed Description

Interlocked singly linked list, list types.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: LI_type.h,v 1.3 2004/12/07 16:13:04 russell Exp $

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

Typedef Documentation

LI_type
 

Typedef for enum _LI_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 LI_K_TYPE_PENDING or LI_K_TYPE_PENDING_WTO.


Enumeration Type Documentation

enum _LI_type
 

Enumerates the types Interlocked lists available.

Enumerator:
LI_K_TYPE_LOCKING_ONLY  Locking mechanism only, no pending mechanism available
LI_K_TYPE_PENDING  Pending mechanism available, single pender/reader only
LI_K_TYPE_PENDING_WTO  Pending with timeouts, single pender/reader only
LI_K_TYPE_PENDING_FIFO  Use FIFO pending order
LI_K_TYPE_PENDING_FIFO_WTO  Use FIFO pending order with timeouts available
LI_K_TYPE_PENDING_PRIORITY  Use PRIORITY pending order
LI_K_TYPE_PENDING_PRIORITY_WTO  Use PRIORITY pending order with timeouts available


Generated on Thu Mar 22 05:43:00 2007 by  doxygen 1.4.4