ot_posix.h File Reference

#include <pthread.h>

Go to the source code of this file.

Defines

#define OMNI_MUTEX_IMPLEMENTATION   pthread_mutex_t posix_mutex;
#define OMNI_MUTEX_LOCK_IMPLEMENTATION   pthread_mutex_lock(&posix_mutex);
#define OMNI_MUTEX_TRYLOCK_IMPLEMENTATION   (pthread_mutex_trylock(&posix_mutex)==0);
#define OMNI_MUTEX_UNLOCK_IMPLEMENTATION   pthread_mutex_unlock(&posix_mutex);
#define OMNI_CONDITION_IMPLEMENTATION   pthread_cond_t posix_cond;
#define OMNI_SEMAPHORE_IMPLEMENTATION
#define OMNI_THREAD_IMPLEMENTATION

Functions

void * omni_thread_wrapper (void *ptr)


Define Documentation

#define OMNI_CONDITION_IMPLEMENTATION   pthread_cond_t posix_cond;

#define OMNI_MUTEX_IMPLEMENTATION   pthread_mutex_t posix_mutex;

#define OMNI_MUTEX_LOCK_IMPLEMENTATION   pthread_mutex_lock(&posix_mutex);

#define OMNI_MUTEX_TRYLOCK_IMPLEMENTATION   (pthread_mutex_trylock(&posix_mutex)==0);

#define OMNI_MUTEX_UNLOCK_IMPLEMENTATION   pthread_mutex_unlock(&posix_mutex);

#define OMNI_SEMAPHORE_IMPLEMENTATION

Value:

omni_mutex m;                                   \
    omni_condition c;                                   \
    int value;                                          \
    int max_count;

#define OMNI_THREAD_IMPLEMENTATION

Value:

pthread_t posix_thread;                         \
    static int posix_priority(priority_t);              \
    friend void* omni_thread_wrapper(void* ptr);


Function Documentation

void* omni_thread_wrapper ( void *  ptr  ) 


Generated on Sat Apr 18 14:00:51 2009 for GNU Radio 3.0.4 by  doxygen 1.5.8