Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ EnsureReceiveOperation()

void System.Net.WebSockets.WebSocketBase.EnsureReceiveOperation ( )
inlineprivate

Definition at line 1367 of file WebSocketBase.cs.

1368 {
1369 if (_receiveOperation != null)
1370 {
1371 return;
1372 }
1373 lock (_thisLock)
1374 {
1375 if (_receiveOperation == null)
1376 {
1377 _receiveOperation = new WebSocketOperation.ReceiveOperation(this);
1378 }
1379 }
1380 }
volatile WebSocketOperation.ReceiveOperation _receiveOperation

References System.Net.WebSockets.WebSocketBase._receiveOperation, and System.Net.WebSockets.WebSocketBase._thisLock.

Referenced by System.Net.WebSockets.WebSocketBase.CloseAsyncCore(), and System.Net.WebSockets.WebSocketBase.ReceiveAsyncCore().