GNU Radio 3.4.0 C++ API
usrp2::pending_reply Class Reference

#include <control.h>

List of all members.

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

Detailed Description

Control mechanism to allow API calls to block waiting for reply packets


Constructor & Destructor Documentation

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.


Member Function Documentation

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


The documentation for this class was generated from the following file: