Boost logo

Boost Users :

Subject: Re: [Boost-users] boost thread (non-blocking) communication
From: Jack Bryan (dtustudy68_at_[hidden])
Date: 2011-09-11 12:36:50


Thanks
How about the overhead if I use the IPC to work for inter-thread communication ?
Are there examples about how to use the IPC to do inter-thread comm ?
Any help is really appreciated.
Thanks
Jack

Date: Sun, 11 Sep 2011 20:15:23 +0400
From: i.nixman_at_[hidden]
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] boost thread (non-blocking) communication

Hi Jack!Use boost.interprocess: http://www.boost.org/doc/libs/1_47_0/libs/interprocess/index.html

niXman

2011/9/11 Jack Bryan <dtustudy68_at_[hidden]>

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

_______________________________________________

Boost-users mailing list

Boost-users_at_[hidden]

http://lists.boost.org/mailman/listinfo.cgi/boost-users

_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users



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