Connection.finishOp

geesefs-0-30-9
Aaron Jacobs 2015-05-05 10:04:31 +10:00
parent be9bf6720f
commit 15bdf82b56
1 changed files with 6 additions and 2 deletions

View File

@ -86,10 +86,14 @@ func (c *Connection) log(
}
// Set up state for an op that is about to be returned to the user.
func (c *Connection) beginOp()
func (c *Connection) beginOp() {
c.opsInFlight.Add(1)
}
// Clean up all state associated with an op to which the user has responded.
func (c *Connection) finishOp()
func (c *Connection) finishOp() {
c.opsInFlight.Done()
}
// Read the next op from the kernel process. Return io.EOF if the kernel has
// closed the connection.