Boost logo

Boost Users :

Subject: Re: [Boost-users] boost thread (non-blocking) communication
From: Robert Ramey (ramey_at_[hidden])
Date: 2011-09-11 16:15:33


Jack Bryan wrote:
> Hi,
>
>
> I am trying to do data-exchange communication among boost::threads.
>
>
> Are there asynchronous (non-blocking) communication APIs in boost ?
>
>
> For example,
>
>
> non_block_send( receiver_address, data_buffer, data_volume, data_tag
> , send_status );
>
>
> non_block_recv( sender_address, data_buffer, data_volume, data_tag ,
> recv_status );
>
>
> if (recv_status == TRUE)
> getData(data_buffer) ;
> else
> wait;
>
>
> Any help is really appreciated.
>
>
> Thanks

I used circular buffer - specifically the "bounded buffer" example to implement this behavior.
I found it to be a perfect and easy to use solution.

Robert Ramey



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net