×

Discussion Board

Results 1 to 3 of 3

Hybrid View

  1. #1
    Registered User
    Join Date
    Mar 2009
    Location
    Italy
    Posts
    153

    sigaction(), alarm() and time_settime() on Symbian

    Hi all,
    I'm creating an app using Qt that needs to trigger a timeout after an amount of time; the original implementation uses signal and alarm to generate a SIGALRM and it works very well on my n9; the same code doesn't work on Symbian despite it is supported and built very well.
    I've also used sigaction and time_create()/time_settime() with the same result!

    Somebody knows where the problem is?! maybe some permitions?!

    It's a very strainge behavior since I'am using select() with timeout (in other place) and it is always triggered!

    Thanks in advance
    Giovanni
    Merry Christmas Tombola! available on OVI Store!
    SuperDaddy available on OVI Store!

    QT VirtualKeyboard: http://qt-apps.org/content/show.php/VirtualKeyboard?content=107388
    Crack Generator: http://qt-apps.org/content/show.php/MosaicCrack?content=121832

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,568

    Re: sigaction(), alarm() and time_settime() on Symbian

    The N9 is a Linux-based device, so it has "real" signals.
    Symbian is not Linux, so it has some emulation at most.
    I found 2 contradicting things:
    Library says there is SIGALRM, http://library.developer.nokia.com/i...E6EBA307B.html (you will probably have to open the link twice in order to get the actual page), however the actual timer examples on http://library.developer.nokia.com/i...D245C8B05.html seem to use custom signals. Page http://library.developer.nokia.com/i...BBF0EBB91.html however promises an example for SIGALRM too, you may want to check if there is anything special in it.
    A porting book says otherwise, http://books.google.no/books?id=Ht1g...ymbian&f=false
    Anyway, I move your question to the Qt boards, as it is not related to Symbian C++. There you will hopefully get more insightful suggestions.

  3. #3
    Registered User
    Join Date
    Mar 2009
    Location
    Italy
    Posts
    153

    Re: sigaction(), alarm() and time_settime() on Symbian

    Quote Originally Posted by wizard_hu_ View Post
    The N9 is a Linux-based device, so it has "real" signals.
    Symbian is not Linux, so it has some emulation at most.
    I found 2 contradicting things:
    Library says there is SIGALRM, http://library.developer.nokia.com/i...E6EBA307B.html (you will probably have to open the link twice in order to get the actual page), however the actual timer examples on http://library.developer.nokia.com/i...D245C8B05.html seem to use custom signals. Page http://library.developer.nokia.com/i...BBF0EBB91.html however promises an example for SIGALRM too, you may want to check if there is anything special in it.
    A porting book says otherwise, http://books.google.no/books?id=Ht1g...ymbian&f=false
    Anyway, I move your question to the Qt boards, as it is not related to Symbian C++. There you will hopefully get more insightful suggestions.
    Anyway, one of them must work...it is always mentioned in official doc!
    Merry Christmas Tombola! available on OVI Store!
    SuperDaddy available on OVI Store!

    QT VirtualKeyboard: http://qt-apps.org/content/show.php/VirtualKeyboard?content=107388
    Crack Generator: http://qt-apps.org/content/show.php/MosaicCrack?content=121832

Similar Threads

  1. How to create birthday alarm in Symbian.C++
    By jameskittu in forum Symbian
    Replies: 3
    Last Post: 2010-06-10, 07:33
  2. Clock application: alarm bugs (daylight saving time and deactivate/activate alarm)
    By SMGGM in forum Series 40 & S60 Platform Feedback Archive
    Replies: 1
    Last Post: 2009-10-26, 17:06
  3. Symbian OS Alarm Server
    By remyag in forum Mobile Java General
    Replies: 0
    Last Post: 2008-09-30, 06:08
  4. Time Machine for Symbian Series 60 (Alarm, Stopwatch, Timer)
    By kedarchitale in forum General Development Questions
    Replies: 1
    Last Post: 2006-03-30, 20:39

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •