Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 1221 | |
| 1222 | // Format implements the NodeFormatter interface. |
| 1223 | func (p LockingWaitPolicy) Format(ctx *FmtCtx) { |
| 1224 | if p != LockWaitBlock { |
| 1225 | ctx.WriteString(" ") |
| 1226 | ctx.WriteString(p.String()) |
| 1227 | } |
| 1228 | } |
| 1229 | |
| 1230 | // Max returns the maximum of the two locking wait policies. |
| 1231 | func (p LockingWaitPolicy) Max(p2 LockingWaitPolicy) LockingWaitPolicy { |