예제 #1
0
        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
        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);
        }