コード例 #1
0
ファイル: log.cs プロジェクト: xiaoyao66/fastCSharp
        /// <summary>
        /// 日志信息写文件
        /// </summary>
        private void output()
        {
            while (!isStop)
            {
                Monitor.Enter(logLock);
                try
                {
                    if (newDebugs.Count == 0)
                    {
                        Monitor.Wait(logLock);
                    }
                    list <debug> oldDebugs = currentDebugs;
                    currentDebugs = newDebugs;
                    newDebugs     = oldDebugs;
                }
                finally { Monitor.Exit(logLock); }
                output(string.Join(@"
- - - - - - - - - -
", currentDebugs.GetArray(error => error.ToString())));
                currentDebugs.Empty();
            }
            newDebugs = null;
        }
コード例 #2
0
ファイル: memoryGraph.cs プロジェクト: iLanceS/fastCSharp
 internal void Set(Type type, list <staticValue> values)
 {
     TypeName = type.fullName();
     Values   = values.GetArray();
 }