C/C++
deadlock.txt
Associated article: Automatic Detection of Potential Deadlock
Tags: C/C++
Published source code accompanying the article by John Mount in which he presents a solution to deadlock problems based on run-time lock analysis that analyzes all transactions. Also see DEADLOCK.ZIP
Detection of Potential Deadlock
by John Mount
Listing One
#ifndef Synchronizer_h_included
#define Synchronizer_h_included
typedef pthread_t threadId;
typedef int synchronizerId;
class Synchronizer {
public:
Synchronizer();
virtual ~Synchronizer();
virtual void acquire();
virtual void release();
private:
pthread_mutex_t ...


