Status & Roadmap
Authors & License
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?
PostCallback executes 2 at once? [message #25515] Fri, 26 February 2010 17:47 Go to previous message
kohait00 is currently offline  kohait00
Messages: 936
Registered: July 2009
Location: Germany
Experienced Contributor
Hi Mirek,

i got to kind of a misbehaviour in my software, where i think that PostCallback is not executing in FIFO order..or at least it executes 2 in parallell. is this true?

in a 2 year old post from you
http://www.ultimatepp.org/forum/index.php?t=msg&goto=105 45&
i found


Async / Non-blocking. It gets performed when GUI thread goes idle after processing messages (if any).

Callback queue itself is MT protected.

Also, callback gets invoked by GUI thread - it is in fact the best way how worker thread is supposed to communicate with it, means you do not need to worry too much about protecting data, there can only be a single GUI thread, means now two Callbacks from Callback (timer) queue can be processed at the same time.

is this true? could you clarify this? can it happen that a second Callback (which was also posted by PostCallback) gets executed while the first one is still in execution?
Read Message
Read Message
Read Message
Previous Topic: extracted Timer from Ctrl
Next Topic: Strange crash connected to Timer
Goto Forum:

Current Time: Sun Apr 11 09:53:49 CEST 2021

Total time taken to generate the page: 0.01672 seconds