[USRP-users] Using a sleep function after receiving data from USRP
josh at ettus.com
Mon Feb 4 12:30:35 EST 2013
On 02/04/2013 11:26 AM, Fernando Quivira wrote:
> Hi all:
> I want to use UHD in a multithreaded aplication. Basically, I want a thread
> to handle getting data from the USRP and other threads handling processing.
> In order to have the timings correctly, should I add a sleep statement
> every time I receive data from the USRP? or is the recv method blocking in
> that regard?
The recv call is a blocking call with a timeout.
Definitely do not sleep :-)
Also, a few of the examples in host/examples use threads, if you want to
> - Fernando
> USRP-users mailing list
> USRP-users at lists.ettus.com
More information about the USRP-users