Simple question: If I call get_address() on a region, can I pass this pointer to another thread and have this thread access the memory ? Thanks!
On Mon, Jun 9, 2014 at 12:48 PM, Aaron Boxer
Simple question: If I call get_address() on a region, can I pass this pointer to another thread and have this thread access the memory ?
Thanks!
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
As long as you keep the region alive as long as the other thread needs it and/or transfer ownership to the other thread.
Great. Thanks, Brian.
On Mon, Jun 9, 2014 at 4:06 PM, Brian Budge
On Mon, Jun 9, 2014 at 12:48 PM, Aaron Boxer
wrote: Simple question: If I call get_address() on a region, can I pass this pointer to another thread and have this thread access the memory ?
Thanks!
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
As long as you keep the region alive as long as the other thread needs it and/or transfer ownership to the other thread. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Aaron Boxer
-
Brian Budge