LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   ACE REACTOR timers or POSIX timers (https://www.linuxquestions.org/questions/programming-9/ace-reactor-timers-or-posix-timers-931104/)

sbauer72 02-24-2012 02:33 PM

ACE REACTOR timers or POSIX timers
 
ALL,

Does anyone have a very simple example of using timers in the ACE REACTOR utilities?

Do you feel that POSIX is better?

millgates 02-25-2012 11:00 AM

Quote:

Originally Posted by kyunghbbu (Post 4611778)
posix

Please do not post if you don't have anything constructive to say. It is especially rude to take other members' questions out of the zero reply list. Since you have been posting similar posts in several other threads, I'll assume it is a spam and report it.

sbauer72 02-25-2012 09:27 PM

what is wrong with you?
 
I am serious. Why post the rude post. I am not marketing anything. I just want an answer or opinion.

I like lq and I have got a lot a good responses in the past.

Dark_Helmet 02-25-2012 09:44 PM

millgates was not responding to you sbauer72.

Look at his quote block. There was a message posted by a user named "kyunghbbu". Without going into all the details, that particular user (and another) were on the forums posting replies that did nothing but quote an earlier message in the thread and embed a web URL to some image file. These "users" were either:
1. automated scripts someone was trying (presumably for forum spamming purposes) or
2. nefarious individuals trying to direct users to click on the link to install some malicious code and/or promote some agenda clearly unrelated to the topic in the thread.

The moderators at LQ realized this (the messages were not limited to this thread alone), and deleted the posts (and presumably the users themselves) once discovered. So, you are seeing millgates's reply to a now-deleted response.

EDIT:
Unfortunately, I don't have any experience with timers in ACE REACTOR utilities. So I can't help with that. Nor, by necessary consequence, can I comment on whether POSIX timers are preferable.

millgates 02-26-2012 04:13 AM

Quote:

Originally Posted by sbauer72 (Post 4612092)
I am serious. Why post the rude post. I am not marketing anything. I just want an answer or opinion.

I like lq and I have got a lot a good responses in the past.

Dark_Helmet is correct. My comment was not meant to you, but to a member who rudely hijacked your thread and whose account was deleted shortly after. I was kind of assuming the mods would also remove my comment since it does not make much sense anymore with the spam post gone. I am sorry if I made an impression that I am rude to you.

Anway, I don't know much anything about ACE REACTOR either, the only thing I can direct you to is this document which seems to be a nice overview if you haven't read it yet and the documentation of the class.
A google search also returned this example that seems to use timers.
From a quick look at the documents, it seems that the time as represented in ACE REACTOR is a wrapper that uses POSIX timeval_t under the hood in POSIX compliant environments and whatever windows uses in win environments. ACE REACTOR also seems to be object oriented, while POSIX timers (IIRC) are plain C.
I'm sorry I can't be of more help.


All times are GMT -5. The time now is 06:59 PM.