jellyfin/Emby.Common.Implementations/IO/SharpCifs/Util/Sharpen/ThreadFactory.cs
2017-06-21 02:46:57 -04:00

17 lines
297 B
C#

using System.Threading.Tasks;
namespace SharpCifs.Util.Sharpen
{
internal class ThreadFactory
{
public Thread NewThread(IRunnable r)
{
Thread t = new Thread(r);
t.SetDaemon(true);
t.Start(true);
return t;
}
}
}