Skip to content
Snippets Groups Projects
Commit 1134598d authored by Avi Kivity's avatar Avi Kivity
Browse files

mutex: add missing getdepth()

parent 31572c85
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,7 @@ public: ...@@ -12,6 +12,7 @@ public:
void lock(); void lock();
bool try_lock(); bool try_lock();
void unlock(); void unlock();
unsigned getdepth() { return _mutex._depth; }
private: private:
mutex_t _mutex; mutex_t _mutex;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment