Exemplo n.º 1
0
        /// <summary>
        /// Worker thread; loads images.
        /// </summary>
        private void Loader()
        {
            while (true)
            {
                if (lstQueue.Count > 0)
                {
                    Img i = lstQueue[0];
                    lstQueue.RemoveAt(0);

                    if (!i.IsFinished)
                    {
                        i.Load(colorProfileName: ColorProfileName, isApplyColorProfileForAll: IsApplyColorProfileForAll);
                    }
                }
                else
                {
                    Thread.Sleep(10);
                }
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Worker thread; loads images.
        /// </summary>
        private void Loader()
        {
            while (true)
            {
                if (lstQueue.Count > 0)
                {
                    Img i = lstQueue[0];
                    lstQueue.RemoveAt(0);

                    if (!i.IsFinished)
                    {
                        i.Load();
                    }
                }
                else
                {
                    Thread.Sleep(10);
                }
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// Worker thread; loads images.
 /// </summary>
 private void Loader()
 {
     while (true)
     {
         if (queue.Count > 0)
         {
             Img i = queue[0];
             queue.RemoveAt(0);
             //Program.dbg("Loader requested on " + i.getName());
             if (!i.IsFinished)
             {
                 //i.load(root);
                 //Program.dbg("Loader executing on " + i.getName());
                 //i.load(root, filter); //ALTERNATIVE_CODE
                 i.Load(filter); //ALTERNATIVE_CODE
                 //i.set(filter.apply(i.get())); //ALTERNATIVE_CODE
             }
         }
         else
         {
             Thread.Sleep(10);
         }
     }
 }