From f4f6b3b2e6622550a0f28bd24f679b4aeda89761 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 2 Mar 2018 22:05:15 +0800 Subject: [PATCH] glist.SafeList -> glist.List --- g/os/gfilepool/gfilepool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/g/os/gfilepool/gfilepool.go b/g/os/gfilepool/gfilepool.go index a0ceec6ba..acd6ea36d 100644 --- a/g/os/gfilepool/gfilepool.go +++ b/g/os/gfilepool/gfilepool.go @@ -22,7 +22,7 @@ import ( type Pool struct { path string // 文件绝对路径 flag int // 文件打开标识 - list *glist.SafeList // 可用/闲置的文件指针链表 + list *glist.List // 可用/闲置的文件指针链表 idlemax int // 闲置最大时间,超过该时间则被系统回收(秒) closed bool // 连接池是否已关闭 } @@ -55,7 +55,7 @@ func New(path string, flag int, expire int) *Pool { r := &Pool { path : path, flag : flag, - list : glist.NewSafeList(), + list : glist.New(), idlemax : expire, } // 独立的线程执行过期清理工作