General Category > General Discussion about just::thread
Lambda functions
(1/1)
kkerbel:
Are they possible with this library? Thanks.
Anthony Williams:
Yes, if your compiler supports lambda functions (e.g. MSVC2010, g++ 4.6) then you can use them with the library. e.g.
--- Code: ---std::thread t(
[]{
do_something();
do_something_else();
});
--- End code ---
kkerbel:
Thanks!
Navigation
[0] Message Index
Go to full version