diff options
author | Benoit Foucher <benoit@zeroc.com> | 2012-04-25 11:19:13 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2012-04-25 11:19:13 +0200 |
commit | 7e874613ff22bedf988273b51a15ab937f01169f (patch) | |
tree | 115a92a902f80fcc6252c5fac6a957ecc548b82c /cs/src/Ice/AsyncIOThread.cs | |
parent | Fixed copyrights (diff) | |
download | ice-7e874613ff22bedf988273b51a15ab937f01169f.tar.bz2 ice-7e874613ff22bedf988273b51a15ab937f01169f.tar.xz ice-7e874613ff22bedf988273b51a15ab937f01169f.zip |
Merged Silverlight support
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(); } |