<p>This is obviously ugly as hell, and essentially means that every such function can lead to random multi-threading related crashes. A proper fix is needed, but as i'm not on my computer right now, that's all I can add.</p>

<p><blockquote type="cite">Am 27.05.2010 21:22 schrieb "Milian Wolff" <<a href="mailto:mail@milianw.de">mail@milianw.de</a>>:<br><br>Andreas Pakulat, 27.05.2010:<br>
<p><font color="#500050">> On 27.05.10 14:03:04, Milian Wolff wrote:<br>> > commit 7e5dd1fd0f0d50b4a3ca235cb791c4eb465be599<br>> > ...</font></p>I'm all for keeping it. Really, it's much cleaner and nicer to work with.<br>

<br>
I've found a way to "fix" my first attempt at the fix. It breaks due to<br>
multithreading which I didn't notice before since I only ran kdevelop with<br>
projects that had proper duchain already setup and hence didn't trigger this<br>
case that only occurred during heavy reparsing.<br>
<br>
My "fix" is calling one of the new getters earlier so that it is already<br>
initialized before two threads try to call it.<br>
<br>
But I think this is kind of ugly... is this a "proper" fix? Do I need to do<br>
this for _every_ such getter?<br>
<p><font color="#500050"><br>> Apologies for not running the unit-tests before merging the branch, I<br>> didn't think they'd break...</font></p>Bad Andreas :P<br>
<br>
Bye<br>
--<br>
<p><font color="#500050">Milian Wolff<br><a href="mailto:mail@milianw.de">mail@milianw.de</a></font></p><a href="http://milianw.de" target="_blank">http://milianw.de</a><br>
<br>--<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
<br></blockquote></p>