jellyfin/Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/ThreadFactory.cs

17 lines
297 B
C#
Raw Normal View History

2017-06-21 06:46:57 +00:00
using System.Threading.Tasks;
2017-04-02 00:36:06 +00:00
namespace SharpCifs.Util.Sharpen
{
2017-06-21 06:46:57 +00:00
internal class ThreadFactory
{
public Thread NewThread(IRunnable r)
{
Thread t = new Thread(r);
t.SetDaemon(true);
t.Start(true);
return t;
}
}
2017-04-02 00:36:06 +00:00
}