K2Informatics.Erlnet.GenericQueue.get C# (CSharp) Méthode

get() public méthode

public get ( ) : Object
Résultat Object
        public Object get()
        {
            Monitor.Enter(this);
            try
            {
                Object o = null;

                while ((o = tryGet()) == null)
                {
                    try
                    {
                        Monitor.Wait(this);
                    }
                    catch (ThreadInterruptedException)
                    {
                    }
                }
                return o;
            }
            finally
            {
                Monitor.Exit(this);
            }
        }

Same methods

GenericQueue::get ( long timeout ) : Object