mirror of
https://github.com/fumiama/orbyte.git
synced 2026-06-10 21:24:50 +08:00
fix: let trans not reset val
This commit is contained in:
@@ -5,6 +5,7 @@ import "sync/atomic"
|
||||
const (
|
||||
statusisbuffered = 1 << iota
|
||||
statusdestroyed
|
||||
statusisintrans
|
||||
)
|
||||
|
||||
type status uintptr
|
||||
@@ -57,3 +58,11 @@ func (c *status) hasdestroyed() bool {
|
||||
func (c *status) setdestroyed(v bool) {
|
||||
c.setbool(v, statusdestroyed)
|
||||
}
|
||||
|
||||
func (c *status) isintrans() bool {
|
||||
return c.loadbool(statusisintrans)
|
||||
}
|
||||
|
||||
func (c *status) setintrans(v bool) {
|
||||
c.setbool(v, statusisintrans)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user