Commit 9ea37c6c authored by sletz's avatar sletz
Browse files

When threads are cancelled, the exception has to be rethrown.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3850 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 0d7306a6
......@@ -27,6 +27,10 @@ Josh Green
Jackdmp changes log
---------------------------
2009-12-09 Stephane Letz <letz@grame.fr>
* When threads are cancelled, the exception has to be rethrown.
2009-12-08 Stephane Letz <letz@grame.fr>
* Josh Green ALSA driver capture only patch.
......
......@@ -31,6 +31,16 @@ namespace Jack
#define TRY_CALL \
try { \
/*
See : http://groups.google.com/group/comp.programming.threads/browse_thread/thread/652bcf186fbbf697/f63757846514e5e5
catch (...) {
// Assuming thread cancellation, must rethrow
throw;
}
*/
#define CATCH_EXCEPTION_RETURN \
} catch(std::bad_alloc& e) { \
jack_error("Memory allocation error..."); \
......@@ -40,15 +50,16 @@ namespace Jack
JackTools::KillServer(); \
return -1; \
} catch (...) { \
jack_error("Unknown error..."); \
return -1; \
jack_error("Unknown error..."); \
throw; \
} \
#define CATCH_ENGINE_EXCEPTION \
} catch(std::bad_alloc& e) { \
jack_error("Memory allocation error..."); \
} catch (...) { \
jack_error("Unknown error..."); \
jack_error("Unknown error..."); \
throw; \
} \
/*!
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment