<div dir="ltr">In ASTUnit.h, there is a ConcurrencyState class which has the following comment;<div><br></div><div><div>  /// \brief Allows us to assert that ASTUnit is not being used concurrently,</div><div>  /// which is not supported.</div>
<div>  ///</div><div>  /// Clients should create instances of the ConcurrencyCheck class whenever</div><div>  /// using the ASTUnit in a way that isn't intended to be concurrent, which is</div><div>  /// just about any usage.</div>
<div>  /// Becomes a noop in release mode; only useful for debug mode checking.</div></div><div><br></div><div>In ASTUnit.cpp, there is a function called cleanupOnDiskMapAtExit(), which has the following comment:</div><div>
<br></div><div><div>  // Use the mutex because there can be an alive thread destroying an ASTUnit.</div></div><div><br></div><div>Can someone clarify the intended behavior here?  These two comments seem to contradict each other.</div>
</div>