diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2012-07-05 19:38:26 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2012-07-05 19:38:26 +0000 |
| commit | b26d5a13733ab7bc71ec17890af452cad9fa16e5 (patch) | |
| tree | 73d3c2334699c88598127d46b9103292df940bae /qpid/cpp/examples/messaging/server.cpp | |
| parent | 86ce77a7c93fa80a80501e6980d607819db48085 (diff) | |
| download | qpid-python-b26d5a13733ab7bc71ec17890af452cad9fa16e5.tar.gz | |
NO-JIRA: Fix for potential Timer deadlock issue:
- Previously we used a mutex to prevent cancelling a TimerTask whilst it
was still executing from within its callback in another thread.
This violates the principle that you shouldn't hold locks when calling
the arbitrary code in a callback, and so is subject to potential
deadlock problems.
- This fix only works if no timer callback calls TimerTask::cancel();
this is true with the current code. And there is no good reason to
call cancel() from within a callback, as cancel is the default
behviour in any case - you have to specifically reschedule a
recurring timer.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1357827 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/examples/messaging/server.cpp')
0 files changed, 0 insertions, 0 deletions
