PFUNC  1.0
Enumerations
pfunc/pfunc_common.h File Reference

Implementation of PFUNC -- Contains the common codes. More...

Go to the source code of this file.

Enumerations

enum  { BARRIER_SPIN = 0, BARRIER_WAIT, BARRIER_STEAL }
enum  {
  PFUNC_ERROR = -0xFFFF, PFUNC_UNINITIALIZED, PFUNC_NOMEM, PFUNC_INVALID_ARGUMENTS,
  PFUNC_INVALID_ATTR, PFUNC_INVALID_ATTR_NAME, PFUNC_INVALID_ATTR_VALUE, PFUNC_INVALID_GROUP,
  PFUNC_INVALID_GROUP_ATTR, PFUNC_INVALID_HANDLE, PFUNC_TASK_INCOMPLETE, PFUNC_SUCCESS = 0,
  PFUNC_INITIALIZED, PFUNC_TASK_COMPLETE
}

Detailed Description

Implementation of PFUNC -- Contains the common codes.

Author:
Prabhanjan Kambadur

Enumeration Type Documentation

anonymous enum

Types of barriers

Enumerator:
BARRIER_SPIN 

Spin until barrier is satisfied

BARRIER_WAIT 

Sleep until barrier is satisfied

BARRIER_STEAL 

Keep working on another job until barrier is staisfied

anonymous enum
Enumerator:
PFUNC_ERROR 

An error has occured

PFUNC_UNINITIALIZED 

Library has not been initialized

PFUNC_NOMEM 

Malloc failed

PFUNC_INVALID_ARGUMENTS 

The arguments are mismatched

PFUNC_INVALID_ATTR 

The attribute is not present

PFUNC_INVALID_ATTR_NAME 

Attribute is not one of the predefined ones

PFUNC_INVALID_ATTR_VALUE 

The attribute specified is not present

PFUNC_INVALID_GROUP 

The group is not valid

PFUNC_INVALID_GROUP_ATTR 

The group attribute is not valid

PFUNC_INVALID_HANDLE 

Handle specified is not valid

PFUNC_TASK_INCOMPLETE 

Incomplete task

PFUNC_SUCCESS 

The function succeeded

PFUNC_INITIALIZED 

PFUNC library has been initialized

PFUNC_TASK_COMPLETE 

The added ``task'' is complete without errors