diff options
Diffstat (limited to 'cs/src/Ice/AsyncIOThread.cs')
-rw-r--r-- | cs/src/Ice/AsyncIOThread.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cs/src/Ice/AsyncIOThread.cs b/cs/src/Ice/AsyncIOThread.cs index 56def39ff3d..fe003a90ef9 100644 --- a/cs/src/Ice/AsyncIOThread.cs +++ b/cs/src/Ice/AsyncIOThread.cs @@ -22,6 +22,7 @@ namespace IceInternal _instance = instance; _thread = new HelperThread(this); +#if !SILVERLIGHT if(instance.initializationData().properties.getProperty("Ice.ThreadPriority").Length > 0) { ThreadPriority priority = IceInternal.Util.stringToThreadPriority( @@ -32,7 +33,9 @@ namespace IceInternal { _thread.Start(ThreadPriority.Normal); } - +#else + _thread.Start(); +#endif } public void queue(ThreadPoolWorkItem callback) @@ -143,12 +146,18 @@ namespace IceInternal _thread.Join(); } +#if !SILVERLIGHT public void Start(ThreadPriority priority) +#else + public void Start() +#endif { _thread = new Thread(new ThreadStart(Run)); _thread.IsBackground = true; _thread.Name = _name; +#if !SILVERLIGHT _thread.Priority = priority; +#endif _thread.Start(); } |