11 Sep
2011
11 Sep
'11
4:37 p.m.
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#th...