On Wed, 12 May 2021 10:53:21 GMT, Robbin Ehn <r...@openjdk.org> wrote:

> 
> 
> > Hi Robbin,
> > I haven't found the time for a proper review yet but I've experimented a 
> > little bit with lambdas. I could not make it work because g++ created 
> > references to ::new which isn't allowed.
> > Thanks, Richard.
> 
> Hi Richard,
> I tested lamdba, which is just a fancy way to write a crazy typed functor, we 
> need to capture the lamdba so we can run it in the destructor. AFAICT the way 
> to do that is using std::function.

Yes, I'd think so too.

> Regarding ThreadClosure, we could use it, maybe that is preferable?!

Personally I'd prefer it but I'm fine with the current version too.

-------------

PR: https://git.openjdk.java.net/jdk/pull/3875

Reply via email to