Commit 0b75c7c3 authored by Marc Gravell's avatar Marc Gravell

don't use the dedicated pool for the mutex await; that code path is from *app*...

don't use the dedicated pool for the mutex await; that code path is from *app* code - we don't want to give them our threads
parent 0ad5c405
...@@ -54,8 +54,7 @@ public PhysicalBridge(ServerEndPoint serverEndPoint, ConnectionType type, int ti ...@@ -54,8 +54,7 @@ public PhysicalBridge(ServerEndPoint serverEndPoint, ConnectionType type, int ti
Name = Format.ToString(serverEndPoint.EndPoint) + "/" + ConnectionType.ToString(); Name = Format.ToString(serverEndPoint.EndPoint) + "/" + ConnectionType.ToString();
completionManager = new CompletionManager(Multiplexer, Name); completionManager = new CompletionManager(Multiplexer, Name);
TimeoutMilliseconds = timeoutMilliseconds; TimeoutMilliseconds = timeoutMilliseconds;
_singleWriterMutex = new MutexSlim(timeoutMilliseconds: timeoutMilliseconds, _singleWriterMutex = new MutexSlim(timeoutMilliseconds: timeoutMilliseconds);
scheduler: Multiplexer?.SocketManager?.SchedulerPool);
} }
private readonly int TimeoutMilliseconds; private readonly int TimeoutMilliseconds;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment