1 instantiation of SocketAsyncEngine
System.Net.Sockets (1)
System\Net\Sockets\SocketAsyncEngine.Unix.cs (1)
93engines[i] = new SocketAsyncEngine();
15 references to SocketAsyncEngine
System.Net.Sockets (15)
System\Net\Sockets\SafeSocketHandle.Unix.cs (3)
34private Flags _flags = Flags.IsSocket | (SocketAsyncEngine.InlineSocketCompletionsEnabled ? Flags.PreferInlineCompletions : 0); 67if (value != SocketAsyncEngine.InlineSocketCompletionsEnabled) 70SocketAsyncEngine.OnInlineCompletionsOverride();
System\Net\Sockets\SocketAsyncContext.Unix.cs (5)
1264private SocketAsyncEngine? _asyncEngine; 1267/// <summary>An index into <see cref="SocketAsyncEngine"/>'s table of all contexts that are currently <see cref="IsRegistered"/>.</summary> 1300if (SocketAsyncEngine.TryRegisterSocket(handle, this, out SocketAsyncEngine? engine, out error)) 1339SocketAsyncEngine.UnregisterSocket(this);
System\Net\Sockets\SocketAsyncEngine.Unix.cs (7)
82private static readonly SocketAsyncEngine[] s_engines = CreateEngines(); 85private static SocketAsyncEngine[] CreateEngines() 89var engines = new SocketAsyncEngine[engineCount]; 100/// Each <see cref="SocketAsyncContext"/> is assigned an index into this table while registered with a <see cref="SocketAsyncEngine"/>. 124public static bool TryRegisterSocket(IntPtr socketHandle, SocketAsyncContext context, out SocketAsyncEngine? engine, out Interop.Error error) 127SocketAsyncEngine nextEngine = s_engines[engineIndex]; 212var thread = new Thread(static s => ((SocketAsyncEngine)s!).EventLoop())