| 12345678910111213141516171819202122232425262728293031323334 | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.#if NO_THREADusing System;using System.Threading;namespace System.Reactive.Concurrency{    class Thread    {        private readonly ThreadStart _start;        public Thread(ThreadStart start)        {            _start = start;        }        public string Name { get; set; }        public bool IsBackground { get; set; }        public void Start()        {            System.Threading.Tasks.Task.Factory.StartNew(Run, System.Threading.Tasks.TaskCreationOptions.LongRunning);        }        private void Run()        {            _start();        }    }    delegate void ThreadStart();}#endif
 |