RE: [LCP]FW: pthread_mutex_lock call hangs
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 _critsection {
pthread_t Owner;
int LockDepth;
pthread_mutex_t Lock;
} CRITICAL_SECTION;
typedef class CriticalSection {
public:
CriticalSection() { CriticalSectionLock.Owner = 0;
CriticalSectionLock.Lock = GenericMutexInitializer; }
int Lock() { return EnterCriticalSection(&CriticalSectionLock); }
//for locking the mutex
void Unlock() { LeaveCriticalSection(&CriticalSectionLock); } //for
unlocking the mutex
private:
CRITICAL_SECTION CriticalSectionLock;
}CCriticalSection;
My code uses the above class as
class myClass {
private
_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/redhat-devel-list
[Kernel Newbies]
[Red Hat General]
[Fedora]
[Red Hat Install]
[Linux Kernel Development]
[Yosemite News]