GNU Radio 3.2.2 C++ API

ot_nt.h File Reference

#include <windows.h>
Include dependency graph for ot_nt.h:

Go to the source code of this file.

Defines

#define WIN32_LEAN_AND_MEAN
#define OMNI_DEFINED_WIN32_LEAN_AND_MEAN
#define OMNI_THREAD_WRAPPER   unsigned __stdcall omni_thread_wrapper(LPVOID ptr);
#define OMNI_MUTEX_IMPLEMENTATION   CRITICAL_SECTION crit;
#define OMNI_MUTEX_LOCK_IMPLEMENTATION   EnterCriticalSection(&crit);
#define OMNI_MUTEX_TRYLOCK_IMPLEMENTATION   TryEnterCriticalSection(&crit);
#define OMNI_MUTEX_UNLOCK_IMPLEMENTATION   LeaveCriticalSection(&crit);
#define OMNI_CONDITION_IMPLEMENTATION
#define OMNI_SEMAPHORE_IMPLEMENTATION   HANDLE nt_sem;
#define OMNI_THREAD_IMPLEMENTATION

Variables

 OMNI_THREAD_WRAPPER

Define Documentation

#define OMNI_CONDITION_IMPLEMENTATION
Value:
CRITICAL_SECTION crit;                          \
    omni_thread* waiting_head;                          \
    omni_thread* waiting_tail;
#define OMNI_DEFINED_WIN32_LEAN_AND_MEAN
#define OMNI_MUTEX_IMPLEMENTATION   CRITICAL_SECTION crit;
#define OMNI_MUTEX_LOCK_IMPLEMENTATION   EnterCriticalSection(&crit);

Referenced by omni_mutex::lock().

#define OMNI_MUTEX_TRYLOCK_IMPLEMENTATION   TryEnterCriticalSection(&crit);

Referenced by omni_mutex::trylock().

#define OMNI_MUTEX_UNLOCK_IMPLEMENTATION   LeaveCriticalSection(&crit);

Referenced by omni_mutex::unlock().

#define OMNI_SEMAPHORE_IMPLEMENTATION   HANDLE nt_sem;
#define OMNI_THREAD_IMPLEMENTATION
Value:
HANDLE handle;                                  \
    DWORD nt_id;                                        \
    void* return_val;                                   \
    HANDLE cond_semaphore;                              \
    omni_thread* cond_next;                             \
    omni_thread* cond_prev;                             \
    BOOL cond_waiting;                                  \
    static int nt_priority(priority_t);                 \
    friend class omni_condition;                        \
    friend OMNI_THREAD_WRAPPER;
#define OMNI_THREAD_WRAPPER   unsigned __stdcall omni_thread_wrapper(LPVOID ptr);
#define WIN32_LEAN_AND_MEAN

Variable Documentation