1
This commit is contained in:
parent
57695a25f4
commit
c6e4546c13
10
app.go
10
app.go
@ -58,8 +58,8 @@ func (this *app) init(userApp UserApp) {
|
||||
this.userApp = userApp
|
||||
this.nowTime = time.Now()
|
||||
atomic.StoreInt64(&this.nowUnixNano, this.nowTime.UnixNano())
|
||||
_Timer = &Timer{}
|
||||
_Timer.init()
|
||||
_timer = &Timer{}
|
||||
_timer.init()
|
||||
_SysLog = new(SysLog_)
|
||||
_SysLog.Init()
|
||||
_TgLog = new(TGLog_)
|
||||
@ -87,8 +87,8 @@ func (this *app) init(userApp UserApp) {
|
||||
|
||||
func (this *app) unInit() {
|
||||
this.chGoLoopTimerExit <- 1
|
||||
_Timer.unInit()
|
||||
_Timer = nil
|
||||
_timer.unInit()
|
||||
_timer = nil
|
||||
this.userApp.UnInit()
|
||||
}
|
||||
|
||||
@ -98,7 +98,7 @@ func (this *app) run() {
|
||||
atomic.StoreInt64(&this.nowUnixNano, this.nowTime.UnixNano())
|
||||
|
||||
beginTick := q5.GetTickCount()
|
||||
_Timer.update()
|
||||
_timer.update()
|
||||
this.dispatchIMMsg()
|
||||
this.userApp.Update()
|
||||
this.schedule()
|
||||
|
@ -1,12 +1,12 @@
|
||||
package f5
|
||||
|
||||
var _app *app
|
||||
var _Timer *Timer
|
||||
var _timer *Timer
|
||||
var _SysLog *SysLog_
|
||||
var _TgLog *TGLog_
|
||||
|
||||
func GetTimer() *Timer {
|
||||
return _Timer
|
||||
return _timer
|
||||
}
|
||||
|
||||
func SysLog() *SysLog_ {
|
Loading…
x
Reference in New Issue
Block a user