add lock free queue

This commit is contained in:
ffdfgdfg committed 2019-10-21 11:55:29 +08:00
1 parent c2f4510a0f
commit 23b023c562
5 files changed
+419 -131

No files matched your search

+1 -1
View File
@@ -263,7 +263,7 @@ func GetPortByAddr(addr string) int {
return p
}
func CopyBuffer(dst io.Writer, src io.Reader) (written int64, err error) {
func CopyBuffer(dst io.Writer, src io.Reader, label ...string) (written int64, err error) {
buf := CopyBuff.Get()
defer CopyBuff.Put(buf)
for {