mirror of https://github.com/jackc/pgx.git
add a comment explaining that nbOperMu and nbOperCnt are used on Windows
parent
32c7858e61
commit
b0fa429fd0
|
@ -96,11 +96,12 @@ type NetConn struct {
|
||||||
|
|
||||||
writeDeadlineLock sync.Mutex
|
writeDeadlineLock sync.Mutex
|
||||||
writeDeadline time.Time
|
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 Used to prevent concurrent SetBlockingMode calls
|
||||||
nbOperMu sync.Mutex
|
nbOperMu sync.Mutex
|
||||||
|
// nbOperCnt Tracks how many operations performing simultaneously
|
||||||
|
nbOperCnt int
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewNetConn(conn net.Conn, fakeNonBlockingIO bool) *NetConn {
|
func NewNetConn(conn net.Conn, fakeNonBlockingIO bool) *NetConn {
|
||||||
|
|
Loading…
Reference in New Issue