aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-08-14 18:59:21 +0000
committerAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-08-14 18:59:21 +0000
commite38a4359371c5a254720fa03fd0722369b5b14cc (patch)
tree56cd01c78344ed2d496bb153b74eea74fe82edac
parentc3f1b75722b7c26d93152e253524efb4525aec7d (diff)
downloadpaludis-e38a4359371c5a254720fa03fd0722369b5b14cc.tar.gz
paludis-e38a4359371c5a254720fa03fd0722369b5b14cc.tar.xz
(python) Thread safety.
-rw-r--r--python/qa.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/qa.cc b/python/qa.cc
index d5fef32..0439084 100644
--- a/python/qa.cc
+++ b/python/qa.cc
@@ -34,6 +34,8 @@ struct QAReporterWrapper :
{
void message(const QAMessage & msg)
{
+ Lock l(get_mutex());
+
if (bp::override f = get_override("message"))
f(msg);
else