コード例 #1
0
ファイル: Functions.OS.cs プロジェクト: shincar/cscs
        static void ThreadProc(Object stateInfo)
        {
            string        body         = (string)stateInfo;
            ParsingScript threadScript = new ParsingScript(body);

            threadScript.ExecuteAll();
        }
コード例 #2
0
ファイル: Functions.OS.cs プロジェクト: 99hats/cscs
        protected override Variable Evaluate(ParsingScript script)
        {
            string body = Utils.GetBodyBetween(script, Constants.START_ARG,
                                               Constants.END_ARG);
            ParsingScript threadScript = new ParsingScript(body);

            lock (lockObject) {
                threadScript.ExecuteAll();
            }
            return(Variable.EmptyInstance);
        }
コード例 #3
0
ファイル: Functions.OS.cs プロジェクト: shincar/cscs
        protected override Variable Evaluate(ParsingScript script)
        {
            string body = Utils.GetBodyBetween(script, Constants.START_ARG,
                                               Constants.END_ARG);
            ParsingScript threadScript = new ParsingScript(body);

            // BUGBUG: Alfred - what is this actually locking?
            // Vassili - it's a global (static) lock. used when called from different threads
            lock (lockObject)
            {
                threadScript.ExecuteAll();
            }
            return(Variable.EmptyInstance);
        }