|
Boost Users : |
Subject: Re: [Boost-users] boost thread (non-blocking) communication
From: Igor R (boost.lists_at_[hidden])
Date: 2011-09-11 12:37:28
> 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;
Perhaps futures can be helpful:
http://www.boost.org/doc/libs/1_47_0/doc/html/thread/synchronization.html#thread.synchronization.futures
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