This is a multi-part message in MIME format.
Hi All
I have been able to solve the problem. But the root cause is still not
clear. Following is the scenario in the code.
I have a class CriticalSection which is being used in the class for
locking.
Following is the class
typedef struct _critsect
FWIW, you can create PTHREAD_MUTEX_ERRORCHECK_NP mutexes (see the man
pages for pthread_mutexattr_init and pthread_mutex_init) to have the
'thread trying to lock the same mutex twice' case detected.
This will help find 'duh' errors in one thread, not solve real deadlocks
(for those, I find it's a
MY CODE.
-Original Message-
From: Don Dade [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2003 12:20 AM
To: [EMAIL PROTECTED]
Subject: Re: pthread_mutex_lock call hangs
Hi Ajay,
This is the normal sequence for LinuxThreads pthread_mutex_lock(). I
would
guess that you've got a
nsal
> Sent: Friday, March 07, 2003 3:11 PM
> To: [EMAIL PROTECTED]
> Subject: RE: pthread_mutex_lock call hangs
>
>
> But IS THAT POSSIBLE?? I mean that release mode binaries do not report a
> deadlock??
>
> Only difference between two build is of "-g" flag. T
Answers pleaaase
-Original Message-
From: Ajay Bansal
Sent: Friday, March 07, 2003 3:11 PM
To: [EMAIL PROTECTED]
Subject: RE: pthread_mutex_lock call hangs
But IS THAT POSSIBLE?? I mean that release mode binaries do not report a
deadlock??
Only difference between two build is
EMAIL PROTECTED]
Sent: Friday, March 07, 2003 12:20 AM
To: [EMAIL PROTECTED]
Subject: Re: pthread_mutex_lock call hangs
Hi Ajay,
This is the normal sequence for LinuxThreads pthread_mutex_lock(). I
would
guess that you've got a very subtle bug that is causing a deadlock when
you
compile an
something wrong with the call.
HTH,
Don
Ajay Bansal writes:
may be somebody over here can answer this
-Original Message-
From: Ajay Bansal
Sent: Thursday, March 06, 2003 9:36 PM
To: [EMAIL PROTECTED]
Subject: pthread_mutex_lock call hangs
Hi All
I am on RH73, gcc 3.2.1
I hav
Title: Message
may be
somebody over here can answer this
-Original Message-From: Ajay Bansal Sent:
Thursday, March 06, 2003 9:36 PMTo:
[EMAIL PROTECTED]Subject: pthread_mutex_lock call
hangs
Hi
All
I am on RH73, gcc
3.2.1
I have a scenario in
which, only if the code is in