diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2013-09-19 10:16:14 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-21 18:39:13 +0200 |
commit | 6611f04879f226d1a90c49e6e11a1e5a897246ad (patch) | |
tree | 52b63495018a814fba8774b3c46862df55248d0d /src/widgets/kernel | |
parent | 4cebef621bb108c76f3cc8bfd0fdf77174b6499d (diff) |
QFutureInterface: wrap a pair of {release,reserve}Thread() calls with RAII
Rationale: a wait on a condition-variable is usually a cancellation point.
On Posix, and probably in C++ at some point, a thread cancellation is
done by (a kind of) exception unwinding the stack. To ensure that
we call reserveThread() in all cases, wrap the function pair in a RAII
class. Even if we currently don't seem to support exceptions in QtCore,
this is low-hanging fruit, and no worse than what we had before.
Change-Id: Ifb0f428ea50f9ac12be14e620615f46e00d3dd91
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/widgets/kernel')
0 files changed, 0 insertions, 0 deletions