[Xenomai-help] help on alarms..

2006-05-07 Thread Prashanti Bedapudi
Attached is a piece of code using alarms, but I am seeing some unexpected behavior. Any help will be appreciated. in function main() the program behaves two different ways depending on where I have the last printf() 1. It works fine and terminates as expected if I have it like this

[Xenomai-help] help with using alarams

2006-05-06 Thread Prashanti Bedapudi
Hi, I am new to xenomai and linux. I am having some problems with alarms. Here is a sample piece of code that I am using. If you look at the main function, I have a while(!quit_now)  and I am setting this flag in the alarm_handler. I am seeing some weird results. When I have a printf statement in

[Xenomai-help] help with alarams

2006-05-05 Thread Prashanti Bedapudi
Hi, I am new to xenomai and linux. I am having some problems with alarms. Here is a sample piece of code that I am using. If you look at the main function, I have a while(!quit_now) and I am setting this flag in the alarm_handler. I am seeing some weird results. When I have a printf