[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Solaris 8 and pthread issues.
From: |
Federico Montesino Pouzols |
Subject: |
Re: Solaris 8 and pthread issues. |
Date: |
Sat, 26 Oct 2002 21:37:25 +0200 |
User-agent: |
Mutt/1.4i |
I have just tried this on a Debian GNU/Linux box and it worked
well, so as you suggest it is probably a platform specific issue. Any
other details about what happens on your platform when you run this
program? Could you confirm if it gets blocked in the
pthread_... system call?
On Fri, Oct 25, 2002 at 12:41:01PM -0700, Anand Narwani wrote:
> Hello Folks,
> I am attempting to write a simple program using Common
> C++2 1.0.3 on Solaris 8. Here is the code:
>
> /**** Code Starts Here ****/
> /***** Code Ends Here ****/
>
> I've attempted to run this with GCC 2.95.2 and also
> GCC 3.2 both seem to have the same results:
> Event::wait() never returns when I do a
> Event::signal(). If I test with Event::wait(timeout),
> it never times out.
> I've looked at the source for the Event Class and I
> can see the call to pthread_cond_wait() or
> pthread_cond_waittimeout(). When these are called,
> neither one returns. I've searched and searched the
> newsgroups and the web. The only issue I've found is
> that Solaris *might* have a problem with recursive
> mutexes. Has anyone experienced problems like this?
> Am I missing something silly?
>
> Thanks in advance,
> Anand