Class CodeGenLock


  • public class CodeGenLock
    extends Object
    Lock that is used to prevent scanning and compiling while code generator is updating sources There is a race when testing this, where you can see the intermediate empty state of the file, or where the file time changes twice. Codegen hold this lock during modification to avoid the race.
    • Constructor Detail

      • CodeGenLock

        public CodeGenLock()
    • Method Detail

      • lockForCodeGen

        public static Lock lockForCodeGen()
      • lockForCompilation

        public static Lock lockForCompilation()