Removed some XNA 3.1 code paths; cleaned up constant usage in platform-specific code sections
git-svn-id: file:///srv/devel/repo-conversion/nusu@211 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
645148a751
commit
46cbc920b1
16 changed files with 75 additions and 110 deletions
|
@ -128,9 +128,7 @@ namespace Nuclex.Support.Scheduling {
|
|||
|
||||
this.timerThread = new Thread(new ThreadStart(runTimerThread));
|
||||
this.timerThread.Name = "Nuclex.Support.Scheduling.Scheduler";
|
||||
#if XNA_3
|
||||
this.timerThread.Priority = ThreadPriority.Highest;
|
||||
#elif !XBOX360 && !WINDOWS_PHONE
|
||||
#if WINDOWS
|
||||
this.timerThread.Priority = ThreadPriority.Highest;
|
||||
#endif
|
||||
this.timerThread.IsBackground = true;
|
||||
|
@ -147,7 +145,7 @@ namespace Nuclex.Support.Scheduling {
|
|||
// a lot of time given that it doesn't do any real work), forcefully abort
|
||||
// the thread. This may risk some leaks, but it's the only thing we can do.
|
||||
bool success = this.timerThread.Join(2500);
|
||||
#if !XBOX360 && !WINDOWS_PHONE
|
||||
#if WINDOWS
|
||||
Trace.Assert(success, "Scheduler timer thread did not exit in time");
|
||||
#endif
|
||||
// Unsubscribe from the time source to avoid surprise events during or
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue