public static CompileProcess GetFromPool()
        {
            foreach (var cp in pool)
            {
                if (cp.available)
                {
                    cp.available = false;
                    return(cp);
                }
            }
            CompileProcess newcp = new CompileProcess();

            newcp.available = false;
            pool.Add(newcp);
            return(newcp);
        }
 public void StartCompile()
 {
     compileProcess = CompileProcess.GetFromPool();
     compileProcess.StartCompile(rendered);
 }