Exemplo n.º 1
0
    public void Update()
    {
        while (taskPackQueue.Count > 0)
        {
            TaskPack taskPack = null;
            lock (taskLock)
            {
                taskPack = taskPackQueue.Dequeue();
            }

            if (taskPack != null)
            {
                taskPack._callback(taskPack._tid);
            }
        }
    }