AP_Thread.h File Reference

#include <stdlib.h>
#include <stdarg.h>
#include <pthread.h>
#include <semaphore.h>
#include <errno.h>
#include <map>
#include <vector>
#include <string>
#include "AP_Types.h"


Data Structures

class  AP_Thread

Namespaces

namespace  AP
 Architecture Platform.

Defines

#define AP_BIG_STACK   8000000
#define AP_HIGH_PRIORITY   2
#define AP_LOW_PRIORITY   0
#define AP_MEDIUM_PRIORITY   1
#define AP_MEDIUM_STACK   1000000
#define AP_SMALL_STACK   100000
#define SWAP16(x)   ((((x) >> 8) & 0x00FF) | (((x) << 8) & 0xFF00))
#define SWAP32(x)

Typedefs

typedef void *(* AP_ThreadHandle )(void *)
typedef pthread_t AP_ThreadObject
typedef pthread_attr_t AP_ThreadObjectAttr

Functions

AP_ThreadObject AP_ThreadCreate (AP_ThreadHandle handle, AP_Pointer arg, AP_Uint32 stacksize)
bool AP_ThreadSingle (void *(*handle)(void *), void *arg, AP_Uint32 stacksize)

Define Documentation

#define AP_BIG_STACK   8000000

#define AP_HIGH_PRIORITY   2

Priority

#define AP_LOW_PRIORITY   0

#define AP_MEDIUM_PRIORITY   1

#define AP_MEDIUM_STACK   1000000

#define AP_SMALL_STACK   100000

Size Stack

#define SWAP16 (  )     ((((x) >> 8) & 0x00FF) | (((x) << 8) & 0xFF00))

#define SWAP32 (  ) 

Value:

((((x) >> 24) & 0x000000FF) | (((x) >> 8) & 0x0000FF00) | \
                        (((x) << 8) & 0x00FF0000) | (((x) << 24) & 0xFF000000))


Generated on Fri Mar 5 16:50:45 2010 for CarLinO by  doxygen 1.5.8