bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Timers and Signals on Solaris 2.8


From: Anand Narwani
Subject: Timers and Signals on Solaris 2.8
Date: Mon, 21 Oct 2002 15:04:10 -0700 (PDT)

Hello Folks,
I am attempting to do something seemingly simple, but
It does not work correctly on Solaris.  Here is my
configuration:
- Solaris 2.8
- g++ 2.95.2
- Common C++2 1.03

The program I am attempting to write has one main
thread which is essentially a scheduler that does some
work and then sleeps for a predefined period.  Here's
the source for a test program I which is similar to
what I am attmpting to do:

http://www.employees.org/~anarwani/thread-test.html


There are two problems that I see:
1.  The onTimer function never gets called.  After
playing with the source in thread.cpp, It appears that
the SIGALARM is not getting sent to the thread.  This
seems to work just fine on Linux
2.  The delete operator does not force a join.  I
finally used a semaphore to get this to work.  This
does *not* work on linux either.

I'm sure I must be missing something simple, but I
cannot find it.  Any help would be very much
appreciated.

Regards,
Anand

__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]