function aaTimer takes nothing returns nothing
local timer Tm = GetExpiredTimer()
local unit u = I2U(H2I(Tm)+1)
xxx
xxx
endfunction
function aa takes nothing returns nothing
local timer Tm = CreateTimer()
local unit u = CreateUnit(xx)
xxx
call TimerStart(Tm,1,false,function aaTimer)
xxx
xxx
endfunction
很邪恶的数据绑定
不过不清楚在多线程的情况下是否会出错。。。