Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Callbacks and Timers » PostCallback executes 2 at once?
Re: PostCallback executes 2 at once? [message #25594 is a reply to message #25593] Tue, 02 March 2010 19:11 Go to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
P.S.: I have just checked the queing code:

static void sTimeCallback(dword time, int delay, Callback cb, void *id) {
	TimeEvent *list = tevents();
	TimeEvent *e;
	for(e = list->GetNext(); e != list && time >= e->time; e = e->GetNext());
	TimeEvent *ne = e->InsertPrev();
	ne->time = time;
	ne->cb = cb;
	ne->delay = delay;
	ne->id = id;
}



(in CtrlCore/Timer.cpp)

and it seems ok, two callbacks scheduled for the same time (which is "now" for Posts) are entered into the queue in order...

Mirek
 
Read Message
Read Message
Read Message
Previous Topic: extracted Timer from Ctrl
Next Topic: Strange crash connected to Timer
Goto Forum:
  


Current Time: Tue Aug 26 17:15:51 CEST 2025

Total time taken to generate the page: 0.13838 seconds