1
0
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:
源文雨
2025-02-26 14:50:39 +09:00
parent 190281785c
commit 72938b1e5f
8 changed files with 130 additions and 300 deletions

View File

@@ -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)
}