ThreadFactory.cs 297 B

12345678910111213141516
  1. using System.Threading.Tasks;
  2. namespace SharpCifs.Util.Sharpen
  3. {
  4. internal class ThreadFactory
  5. {
  6. public Thread NewThread(IRunnable r)
  7. {
  8. Thread t = new Thread(r);
  9. t.SetDaemon(true);
  10. t.Start(true);
  11. return t;
  12. }
  13. }
  14. }