Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

ot_posix.h File Reference

#include <pthread.h>

Include dependency graph for ot_posix.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 Jul 8 17:10:29 2006 for GNU Radio 2.x by  doxygen 1.4.1