Skip to content

Threading and Locking in Komodo

John M. Jones edited this page Sep 2, 2021 · 2 revisions

To help with locking we can do static code analysis and/or runtime checks.

To enable runtime checks, compile with clang or gcc, using the command line parameter -DDEBUG_LOCKORDER.

To compile with clang, modify the linux.mk file and replace gcc with clang. Also replace g++ with clang++.

To enable static code analysis, compile with clang, using the command line parameter -Wthread-safety Note that the file threadsafety.h contains the macros used by the clang compiler to do the static analysis. Details can be found here.

Clone this wiki locally