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 (double secs)
void signal ()
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

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


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

Generated on Wed Jul 29 06:31:36 2009 for GNU Radio 3.2.2 C++ API by  doxygen 1.5.9