| 28 | // |
| 29 | |
| 30 | struct CLockLocation |
| 31 | { |
| 32 | CLockLocation(const char* pszName, const char* pszFile, int nLine) |
| 33 | { |
| 34 | mutexName = pszName; |
| 35 | sourceFile = pszFile; |
| 36 | sourceLine = nLine; |
| 37 | } |
| 38 | |
| 39 | string ToString() const |
| 40 | { |
| 41 | return mutexName+" "+sourceFile+":"+itostr(sourceLine); |
| 42 | } |
| 43 | |
| 44 | string MutexName() const { return mutexName; } |
| 45 | |
| 46 | private: |
| 47 | string mutexName; |
| 48 | string sourceFile; |
| 49 | int sourceLine; |
| 50 | }; |
| 51 | |
| 52 | typedef vector< pair<void*, CLockLocation> > LockStack; |
| 53 |