rtmlib
Classes | Macros | Typedefs | Enumerations
task_compat.h File Reference
#include <errno.h>
#include <pthread.h>
#include <sys/types.h>
#include "debug_compat.h"
#include "time_compat.h"
Include dependency graph for task_compat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  task
 

Macros

#define P_OK   0
 
#define pcheck(val)
 
#define pcheck_print(val, checkval, extra_action)
 
#define pcheck_attr(val, attr)
 

Typedefs

typedef struct task __task
 

Enumerations

enum  status {
  ACTIVATION, RUNNING, DELAY, ABORT,
  ABORTED, UNACTIVATE
}
 

Macro Definition Documentation

◆ P_OK

#define P_OK   0

◆ pcheck

#define pcheck (   val)
Value:
if (val != P_OK) { \
::printf("Error: %d\n", val); \
return val; \
}
#define P_OK
Definition: task_compat.h:38

◆ pcheck_attr

#define pcheck_attr (   val,
  attr 
)
Value:
if (val != P_OK) { \
::printf("Destroying ERROR:%d\n", val); \
pthread_attr_destroy(attr); \
return val; \
}
#define P_OK
Definition: task_compat.h:38

◆ pcheck_print

#define pcheck_print (   val,
  checkval,
  extra_action 
)
Value:
if (val != checkval) { \
::printf("Error: %d\n", val); \
extra_action \
}

Typedef Documentation

◆ __task

typedef struct task __task

Enumeration Type Documentation

◆ status

enum status
Enumerator
ACTIVATION 
RUNNING 
DELAY 
ABORT 
ABORTED 
UNACTIVATE