diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-11-28 18:10:54 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-11-28 18:10:54 +0200 |
| commit | 539aecd793ee0ce55833eef98c3049dd0bf8127d (patch) | |
| tree | f8ad9f837805db9ffcfc16d7b3b100563f0f67a4 /Software/Visual_Studio/Tango.Core/Threading | |
| parent | e6fbe359a674ab65c1fc728ac4a826b3c0716932 (diff) | |
| download | Tango-539aecd793ee0ce55833eef98c3049dd0bf8127d.tar.gz Tango-539aecd793ee0ce55833eef98c3049dd0bf8127d.zip | |
Started working on Embedded Storage and machine studio Storage module.
Diffstat (limited to 'Software/Visual_Studio/Tango.Core/Threading')
| -rw-r--r-- | Software/Visual_Studio/Tango.Core/Threading/ThreadFactory.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Core/Threading/ThreadFactory.cs b/Software/Visual_Studio/Tango.Core/Threading/ThreadFactory.cs new file mode 100644 index 000000000..80e4d2d6c --- /dev/null +++ b/Software/Visual_Studio/Tango.Core/Threading/ThreadFactory.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading; +using System.Threading.Tasks; + +namespace Tango.Core.Threading +{ + public class ThreadFactory + { + public static Thread StartNew(Action action) + { + Thread t = new Thread(() => + { + action(); + }); + t.IsBackground = true; + t.Start(); + return t; + } + } +} |
