Made Nuclex.Support compileable on the XBox 360; added new XNA 3.0 project to compile Nuclex.Support on the XBox 360; added my own AssemblyLoadEventArgs implementation since the XBox 360 XNA framework doesn't provide it; other minor fixes so Nuclex.Support can cope with the XBox 360 XNA framework
git-svn-id: file:///srv/devel/repo-conversion/nusu@113 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
8f6616f79a
commit
0a483b4d44
19 changed files with 473 additions and 28 deletions
|
@ -18,12 +18,13 @@ License along with this library
|
|||
*/
|
||||
#endregion
|
||||
|
||||
#if UNITTEST
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization.Formatters.Binary;
|
||||
|
||||
#if UNITTEST
|
||||
|
||||
using NUnit.Framework;
|
||||
using NMock2;
|
||||
|
|
|
@ -43,6 +43,8 @@ namespace Nuclex.Support.Scheduling {
|
|||
/// <param name="inner">Preceding exception that has caused this exception</param>
|
||||
public AbortedException(string message, Exception inner) : base(message, inner) { }
|
||||
|
||||
#if !COMPACTFRAMEWORK
|
||||
|
||||
/// <summary>Initializes the exception from its serialized state</summary>
|
||||
/// <param name="info">Contains the serialized fields of the exception</param>
|
||||
/// <param name="context">Additional environmental informations</param>
|
||||
|
@ -52,6 +54,8 @@ namespace Nuclex.Support.Scheduling {
|
|||
)
|
||||
: base(info, context) { }
|
||||
|
||||
#endif // !COMPACTFRAMEWORK
|
||||
|
||||
}
|
||||
|
||||
} // namespace Nuclex.Support.Scheduling
|
||||
|
|
|
@ -18,12 +18,13 @@ License along with this library
|
|||
*/
|
||||
#endregion
|
||||
|
||||
#if UNITTEST
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization.Formatters.Binary;
|
||||
|
||||
#if UNITTEST
|
||||
|
||||
using NUnit.Framework;
|
||||
using NMock2;
|
||||
|
|
|
@ -18,14 +18,14 @@ License along with this library
|
|||
*/
|
||||
#endregion
|
||||
|
||||
#if UNITTEST
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization.Formatters.Binary;
|
||||
using System.Threading;
|
||||
|
||||
#if UNITTEST
|
||||
|
||||
using NUnit.Framework;
|
||||
using NMock2;
|
||||
|
||||
|
|
|
@ -18,12 +18,13 @@ License along with this library
|
|||
*/
|
||||
#endregion
|
||||
|
||||
#if UNITTEST
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization.Formatters.Binary;
|
||||
|
||||
#if UNITTEST
|
||||
|
||||
using NUnit.Framework;
|
||||
using NMock2;
|
||||
|
|
|
@ -57,9 +57,9 @@ namespace Nuclex.Support.Scheduling {
|
|||
"Operations cannot be re-run"
|
||||
);
|
||||
if(useThreadPool) {
|
||||
ThreadPool.QueueUserWorkItem(callMethod);
|
||||
ThreadPool.QueueUserWorkItem(new WaitCallback(callMethod));
|
||||
} else {
|
||||
Thread thread = new Thread(callMethod);
|
||||
Thread thread = new Thread(new ThreadStart(callMethod));
|
||||
thread.Name = "Nuclex.Support.Scheduling.ThreadOperation";
|
||||
thread.IsBackground = true;
|
||||
thread.Start();
|
||||
|
@ -72,6 +72,11 @@ namespace Nuclex.Support.Scheduling {
|
|||
/// <summary>Invokes the delegate passed as an argument</summary>
|
||||
/// <param name="state">Not used</param>
|
||||
private void callMethod(object state) {
|
||||
callMethod();
|
||||
}
|
||||
|
||||
/// <summary>Invokes the delegate passed as an argument</summary>
|
||||
private void callMethod() {
|
||||
try {
|
||||
Execute();
|
||||
Debug.Assert(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue