mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-16 15:08:17 +08:00
rewrite using IoC and DI
This commit is contained in:
10
common/event/pool.go
Normal file
10
common/event/pool.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package event
|
||||
|
||||
var MAX_QUEUE_SIZE = 128
|
||||
var MAX_WORKER_SIZE = 16
|
||||
|
||||
var MainManager *Manager
|
||||
|
||||
func init() {
|
||||
MainManager = NewManger(MAX_QUEUE_SIZE, MAX_WORKER_SIZE)
|
||||
}
|
||||
Reference in New Issue
Block a user