Skip to content

Commit

Permalink
Merge pull request #113 from kooiot/master
Browse files Browse the repository at this point in the history
fix unaligned 64-bit atomic operation issue on arm32 device
  • Loading branch information
Allenxuxu committed Jan 22, 2022
2 parents 4071d56 + c0367dd commit 9262fa1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@ type CallBack interface {

// Connection TCP 连接
type Connection struct {
outBufferLen atomic.Int64
inBufferLen atomic.Int64
activeTime atomic.Int64
fd int
connected atomic.Bool
buffer *ringbuffer.RingBuffer
outBuffer *ringbuffer.RingBuffer // write buffer
inBuffer *ringbuffer.RingBuffer // read buffer
outBufferLen atomic.Int64
inBufferLen atomic.Int64
callBack CallBack
loop *eventloop.EventLoop
peerAddr string
ctx interface{}
KeyValueContext

idleTime time.Duration
activeTime atomic.Int64
timingWheel *timingwheel.TimingWheel
timer at.Value
protocol Protocol
Expand Down

0 comments on commit 9262fa1

Please sign in to comment.