GNU Radio 3.2.2 C++ API
common.h File Reference
#include <pmt.h>
#include <vector>
#include <stdexcept>
#include <boost/utility.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <boost/weak_ptr.hpp>

Go to the source code of this file.

Typedefs

typedef unsigned int mb_pri_t

Functions

static bool mb_pri_better (mb_pri_t a, mb_pri_t b)
 return true iff priority a is better than priority b
static bool mb_pri_worse (mb_pri_t a, mb_pri_t b)
 return true iff priority a is worse than priority b
static mb_pri_t mb_pri_clamp (mb_pri_t p)
 ensure that pri is valid

Variables

static const mb_pri_t MB_PRI_BEST = 0
static const mb_pri_t MB_PRI_DEFAULT = 4
static const mb_pri_t MB_PRI_WORST = 7
static const mb_pri_t MB_NPRI = MB_PRI_WORST + 1

Typedef Documentation

typedef unsigned int mb_pri_t

Function Documentation

static bool mb_pri_better ( mb_pri_t  a,
mb_pri_t  b 
) [inline, static]

return true iff priority a is better than priority b

static mb_pri_t mb_pri_clamp ( mb_pri_t  p) [inline, static]

ensure that pri is valid

References MB_NPRI.

static bool mb_pri_worse ( mb_pri_t  a,
mb_pri_t  b 
) [inline, static]

return true iff priority a is worse than priority b


Variable Documentation

const mb_pri_t MB_NPRI = MB_PRI_WORST + 1 [static]

Referenced by mb_pri_clamp().

const mb_pri_t MB_PRI_BEST = 0 [static]
const mb_pri_t MB_PRI_DEFAULT = 4 [static]
const mb_pri_t MB_PRI_WORST = 7 [static]