Revert "Run graphics rendering on a dedicated thread."
This reverts commit b9be52c5428d4a3862d62fe3a2c01663bd3692c3.
This commit is contained in:
@@ -16,14 +16,9 @@ namespace OpenRA.Platforms.Default
|
||||
{
|
||||
abstract class ThreadAffine
|
||||
{
|
||||
volatile int managedThreadId;
|
||||
readonly int managedThreadId;
|
||||
|
||||
protected ThreadAffine()
|
||||
{
|
||||
SetThreadAffinity();
|
||||
}
|
||||
|
||||
protected void SetThreadAffinity()
|
||||
{
|
||||
managedThreadId = Thread.CurrentThread.ManagedThreadId;
|
||||
}
|
||||
@@ -31,7 +26,7 @@ namespace OpenRA.Platforms.Default
|
||||
protected void VerifyThreadAffinity()
|
||||
{
|
||||
if (managedThreadId != Thread.CurrentThread.ManagedThreadId)
|
||||
throw new InvalidOperationException("Cross-thread operation not valid: This method must only be called from the thread that owns this object.");
|
||||
throw new InvalidOperationException("Cross-thread operation not valid: This method must be called from the same thread that created this object.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user