VOID CALLBACK TimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime) { cs.Enter(); QueueElement q = actionQueue.front(); actionQueue.pop_front(); UpdateTimer(); cs.Leave(); q.Handler(q.hContact, q.inf); }
VOID CALLBACK TimerProc(HWND, UINT, UINT_PTR, DWORD) { mir_cslockfull lck(cs); QueueElement q = actionQueue.front(); actionQueue.pop_front(); UpdateTimer(); lck.unlock(); q.Handler(q.hContact, q.inf); }