예제 #1
0
        public void __Process()
        {
            Done = false;
            if (In)
            {
                SlaveFbImpl fb = Container.GetInstance().Get(Handle);
                if (fb != null)
                {
                    switch (Job)
                    {
                    case 0:
                        fb.Add1();
                        Done = true;
                        break;

                    case 1:
                        fb.Add10();
                        Done = true;
                        break;

                    default:
                        break;
                    }
                }
            }
        }
예제 #2
0
        internal int Add(SlaveFbImpl o)
        {
            int handle = Container.InvalidHandle;

            lock (this)
            {
                handle = nextHandle;
                fbs.Add(handle, o);
                nextHandle++;
            }
            return(handle);
        }
예제 #3
0
 public SlaveFB2()
 {
     impl = new SlaveFbImpl();
 }