[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Help with Timers on Solaris
From: |
Anand Narwani |
Subject: |
Help with Timers on Solaris |
Date: |
Sun, 20 Oct 2002 19:53:28 -0700 (PDT) |
Hello folks,
I am attmepting to do something that seems to be
reasonably simple but I cannot seem to make it work.
Here is my configuration:
- Solaris 2.8
- Common C++2 1.03
- g++ 2.95.2
Essentially I am attempting to implement a Posix
Thread which goes to sleep for a specified period,
gets woken up, does some work and then goes back to
sleep. Please take a look at the source at:
http://www.employees.org/~anarwani/thread-test.html
I have 2 problems:
1. My derived onTimer() routine never gets called when
the timer expires.
2. I am unable to use the delete operator to force my
main thread to join with my thread. it simply exits
the program. I have since worked around the problem
using a semaphore.
I have tested this program on Linux and it works
correctly. I suspect that the pthreads implementation
differences between the two operating systems are the
reason for the failure on Solaris, but I have no idea
how to fix this. Any assistance is very much
appreciated.
Regards,
Anand
__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/
- Help with Timers on Solaris,
Anand Narwani <=