예제 #1
0
        public void FlushInlineQueue()
        {
            bool action = false;

            lock (recompileSet)
            {
                foreach (var method in recompileSet)
                {
                    lock (scheduleQueue)
                    {
                        AddToQueue(method);
                    }
                }

                recompileSet.Clear();
                action = recompileSet.Count != 0;
            }

            if (action)
            {
                Compiler.PostEvent(CompilerEvent.InlineMethodsScheduled);
            }
        }
예제 #2
0
 protected void PostCompilerTraceEvent(CompilerEvent compilerEvent, string message)
 {
     Compiler.PostEvent(compilerEvent, message, 0);
 }