Thread safety for status updates, periodically minify

This commit is contained in:
Ian Gulliver
2021-11-22 22:19:38 -08:00
parent 44c6a26f9d
commit 352e1b90be
6 changed files with 59 additions and 4 deletions

View File

@@ -13,3 +13,14 @@ type Operand struct {
Reserved [3]byte
Value uint64
}
func (opr *Operand) Copy() *Operand {
if opr == nil {
return nil
}
return &Operand{
Type: opr.Type,
Value: opr.Value,
}
}