全局变量
This commit is contained in:
@ -8,8 +8,8 @@
|
||||
|
||||
"""
|
||||
import multiprocessing
|
||||
global active_connections
|
||||
global active_connections_dist
|
||||
|
||||
|
||||
|
||||
def _init(): # 初始化
|
||||
# 中断标志
|
||||
@ -17,9 +17,11 @@ def _init(): # 初始化
|
||||
_global_dict = {}
|
||||
|
||||
# ws列表存储
|
||||
global active_connections
|
||||
active_connections = multiprocessing.Manager().list()
|
||||
|
||||
# ws字典存储
|
||||
global active_connections_dist
|
||||
active_connections_dist = multiprocessing.Manager().dict()
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user