
5 Mar
2013
5 Mar
'13
2:13 a.m.
On Sun, Mar 3, 2013 at 6:37 PM, Hartmut Kaiser <hartmut.kaiser@gmail.com> wrote:
That's excellent (sorry I have not seen this in the docs before). However I think it's not a good idea to create your own futures. This does not scale well nor does it compose with std::future or boost::future. Is there a way to use whatever futures (or more specifically, threading implementation) the user decides to use?
The boost::compute::future class wraps a cl_event object which is used to monitor the progress of a compute kernel. I'm not sure how to achieve this with std::future or boost.thread's future (or even which to chose for the API). Any pointers (or example code) would be greatly appreciated. -kyle