Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

CoWorkExceptions

 

Demonstrates of worker thread exception handling

 

 

CoWorkExceptions.cpp

 

#include <Core/Core.h>

 

using namespace Upp;

 

CONSOLE_APP_MAIN

{

    StdLogSetup(LOG_COUT|LOG_FILE);

    

    try {

        CoWork co;

        co & [] { throw "Worker exception"; };

    }

    catch(const char *s) {

        LOG("Caught: " << s);

    }

}

 

 

 

 

Do you want to contribute?