Beispiel #1
0
        //works

        public List <int> getFunctionalTrucks()
        {
            List <int> truckNumbers = new List <int>();

            if (System.Threading.Monitor.TryEnter(obj5, 45000))
            {
                try
                {
                    truckNumbers = truckCtr.getFunctionalTrucks();
                }
                finally
                {
                    System.Threading.Monitor.Exit(obj5);
                }
            }
            return(truckNumbers);
        }