summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-05 21:38:31 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-07 01:49:54 +0100
commitd26abb724e4d64ca7be507d99d80ab778813684f (patch)
tree260f00ec675b38ea69ba085eaa7a8d61af2bc32b /src/Makefile.am
parentc4680eb890064cd2491dfc578941c72fe1463a82 (diff)
downloadmana-d26abb724e4d64ca7be507d99d80ab778813684f.tar.gz
mana-d26abb724e4d64ca7be507d99d80ab778813684f.tar.bz2
mana-d26abb724e4d64ca7be507d99d80ab778813684f.tar.xz
mana-d26abb724e4d64ca7be507d99d80ab778813684f.zip
Fix race condition with a std::string access
The downloading thread was writing to a std::string while the main thread was trying to draw it, for example. Now access to the label caption is guarded with a mutex. Should fix crashes while downloading updates. (cherry picked from eAthena branch, commits 6ac9c3bce62a8fc79e23477417188108f0ad9fa6 and 06d0205bab253ec5d01e8483ab639a092fe117c5)
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index e953507a..65e8cafd 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -282,6 +282,7 @@ tmw_SOURCES = gui/widgets/avatar.cpp \
utils/strprintf.cpp \
utils/tostring.h \
utils/trim.h \
+ utils/mutex.h \
utils/xml.cpp \
utils/xml.h \
animatedsprite.cpp \