Format implements the NodeFormatter interface.
(ctx *FmtCtx)
| 1065 | |
| 1066 | // Format implements the NodeFormatter interface. |
| 1067 | func (p LockingWaitPolicy) Format(ctx *FmtCtx) { |
| 1068 | if p != LockWaitBlock { |
| 1069 | ctx.WriteString(" ") |
| 1070 | ctx.WriteString(p.String()) |
| 1071 | } |
| 1072 | } |
| 1073 | |
| 1074 | // Max returns the maximum of the two locking wait policies. |
| 1075 | func (p LockingWaitPolicy) Max(p2 LockingWaitPolicy) LockingWaitPolicy { |