mirror of
https://github.com/jackc/pgx.git
synced 2025-05-31 11:42:24 +00:00
add a comment explaining that nbOperMu and nbOperCnt are used on Windows
This commit is contained in:
parent
32c7858e61
commit
b0fa429fd0
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user