mirror of
https://github.com/fumiama/orbyte.git
synced 2026-06-08 20:10:37 +08:00
fix(all): impl. new apis to make sure safety
This commit is contained in:
@@ -5,7 +5,6 @@ import "sync/atomic"
|
||||
const (
|
||||
statusisbuffered = 1 << iota
|
||||
statusdestroyed
|
||||
statusisintrans
|
||||
)
|
||||
|
||||
type status uintptr
|
||||
@@ -58,11 +57,3 @@ 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