#include <control.h>
Public Member Functions | |
| pending_reply (unsigned int rid, void *buffer, size_t len) | |
| ~pending_reply () | |
| int | wait (double secs) |
| void | signal () |
| unsigned int | rid () const |
| void * | buffer () const |
| size_t | len () const |
| 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
| unsigned int usrp2::pending_reply::rid | ( | ) | const [inline] |
Retrieve pending reply ID
| void usrp2::pending_reply::signal | ( | ) |
Allows creating thread to resume after copying reply into buffer
| int usrp2::pending_reply::wait | ( | double | secs | ) |
Block, waiting for reply packet. Returns: 1 = ok, reply packet in buffer 0 = timeout
1.5.9