Vote UpVote

Delayed Action, revisited

TURBU Tech – A few days ago, I posted a simple “delayed action” unit that allows you to post a simple action to the Windows Message Queue, to be executed on the main thread after all currently pending messages.  It worked by storing your proc in its own threadsafe queue, then posting a message which, when read, caused the proc to be popped back off the queue and executed. Turns out there are a couple problems with that.  First, the message is already going through the Windows Message Queue.  As David Heffernan pointed out in the comments, “One queue is enough. Two is too many.”  I ...
Favorite? Off-Topic? Mason Wheeler @ 2012-09-15 21:19


Visits: 730
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)