2
0

add a comment explaining that nbOperMu and nbOperCnt are used on Windows

This commit is contained in:
Nicola Murino
2023-05-27 21:15:49 +02:00
committed by Jack Christensen
parent 32c7858e61
commit b0fa429fd0
+3 -2
View File
@@ -96,11 +96,12 @@ type NetConn struct {
writeDeadlineLock sync.Mutex
writeDeadline time.Time
// The following fields are used in nbconn_real_non_block_windows
// nbOperCnt Tracks how many operations performing simultaneously
nbOperCnt int
// nbOperMu Used to prevent concurrent SetBlockingMode calls
nbOperMu sync.Mutex
// nbOperCnt Tracks how many operations performing simultaneously
nbOperCnt int
}
func NewNetConn(conn net.Conn, fakeNonBlockingIO bool) *NetConn {