Hello,
I create form on Main function.
And try create event on click with thread pool.

    nana::threads::pool pool_{ 1 };

    nana::button btnupdate(form, nana::rectangle{ 290, 165, 100, 30 });
    btnupdate.caption("Update");

    btnupdate.events().click([&] { 
        updater_log->append("\nTrying run", false);
        nana::threads::pool_push(pool_, [&]{
            updater_log->append("\nWorking.", false);
        btnupdate.enabled(false);
        std::cout << "Working." << std::endl;
        }); });

But thread not starting, where is problem??

Hello, I create form on Main function. And try create event on click with thread pool. ```` nana::threads::pool pool_{ 1 }; nana::button btnupdate(form, nana::rectangle{ 290, 165, 100, 30 }); btnupdate.caption("Update"); btnupdate.events().click([&] { updater_log->append("\nTrying run", false); nana::threads::pool_push(pool_, [&]{ updater_log->append("\nWorking.", false); btnupdate.enabled(false); std::cout << "Working." << std::endl; }); }); ```` But thread not starting, where is problem??
4
views
0
replies
1
followers
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft