The example mentioned CRITICAL_SECTION since I knew there was some code in Scintilla that used them that could be examined. Scintilla on Windows maintains a global font cache and since you may be switching fonts very often when, for example, laying out all of a large document, a lightweight lock is used. For managing a job queue, each operation is huge so lock performance doesn't matter.
Neil _______________________________________________ Scite-interest mailing list Scite-interest@lyra.org http://mailman.lyra.org/mailman/listinfo/scite-interest