MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / CLockLocation

Class CLockLocation

src/sync.cpp:30–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28//
29
30struct 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
46private:
47 string mutexName;
48 string sourceFile;
49 int sourceLine;
50};
51
52typedef vector< pair<void*, CLockLocation> > LockStack;
53

Callers 1

EnterCriticalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected