Thread safety for status updates, periodically minify
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user