Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Can only one timer be landed in an event queue?

This thread is locked; no one can reply to it. rss feed Print
Can only one timer be landed in an event queue?
keprast
Member #16,794
January 2018

I might be a fool.
I tried to register two timers in a queue.

If I'm going to log in two timers.
I need two queues, right?

-----------------------------------
Try the test.
Two event queues are not enough.:-/
If I'm going to log in two timers.
How do you do it?thanks.:)

Chris Katko
Member #1,881
January 2002
avatar

You can have multiple timers in a queue. A queue is full of events of all kinds.

You just have to make sure when you get a TIMER_EVENT you then check WHICH TIMER has fired off.

-----sig:
“Programs should be written for people to read, and only incidentally for machines to execute.” - Structure and Interpretation of Computer Programs
"Political Correctness is fascism disguised as manners" --George Carlin

BanditBloodwyn
Member #16,791
January 2018

I tried the same and succeded :).
Just look at THIS thread and it's answers: https://www.allegro.cc/forums/thread/617209

Go to: