diff options
author | dt <qtc-committer@nokia.com> | 2010-03-17 16:19:55 +0100 |
---|---|---|
committer | dt <qtc-committer@nokia.com> | 2010-03-17 16:27:50 +0100 |
commit | 966306735799fc9feb81b0bef57809b3608574b3 (patch) | |
tree | 72f56cf54e8c4585029808ff4b73a8fb4bd1c3fe /src/plugins/cpptools/cpptoolsplugin.cpp | |
parent | b6fda5be8489cee6f9aefa63a0084f0a3914d76c (diff) | |
download | qt-creator-966306735799fc9feb81b0bef57809b3608574b3.tar.gz |
Fix deadlock in .pro file evaluation.
We used to indicate that the cache for a file is up to date by having a
Entry with ent->locker == 0. But we first wake up all threads and only
after all the threads who waited for that parse to complete we set
ent->locker to zero. Thus a different thread could get the impression
that it needs to wait for the parse thread, yet get no wake up.
We need a different flag to indicate that we are actually already done
parsing and the cache can simply be used instead of waiting for a wake
up.
Reviewed-By: ossi
Diffstat (limited to 'src/plugins/cpptools/cpptoolsplugin.cpp')
0 files changed, 0 insertions, 0 deletions