public static ExThread GetInstance() { if (instance == null) { instance = new ExThread(); } return(instance); }
public void RunIntThread() { owner.Println("Cykl: Int"); ExThread thEx = ExThread.GetInstance(); thEx.SetOwner(owner); ThreadStart ts = new ThreadStart(thEx.RunExThread); Thread exThread = new Thread(ts); exThread.Start(); }