GNU Radio 3.3.0 C++ API
|
#include <control.h>
Public Member Functions | |
pending_reply (unsigned int rid, void *buffer, size_t len) | |
~pending_reply () | |
int | wait_for_completion (double secs) |
void | notify_completion () |
unsigned int | rid () const |
void * | buffer () const |
size_t | len () const |
Control mechanism to allow API calls to block waiting for reply packets
usrp2::pending_reply::pending_reply | ( | unsigned int | rid, |
void * | buffer, | ||
size_t | len | ||
) |
Construct a pending reply from the reply ID, response packet buffer, and buffer length.
usrp2::pending_reply::~pending_reply | ( | ) |
Destructor. Signals creating thread.
void* usrp2::pending_reply::buffer | ( | ) | const [inline] |
Retrieve destination buffer address
size_t usrp2::pending_reply::len | ( | ) | const [inline] |
Retrieve destination buffer length
void usrp2::pending_reply::notify_completion | ( | ) |
Allows creating thread to resume after copying reply into buffer
unsigned int usrp2::pending_reply::rid | ( | ) | const [inline] |
Retrieve pending reply ID
int usrp2::pending_reply::wait_for_completion | ( | double | secs | ) |
Block, waiting for reply packet. Returns: 1 = ok, reply packet in buffer 0 = timeout