Skip to content

Commit 251bf1a

Browse files
committed
Update mutex to include scoped_lock stubs
1 parent 8f67e38 commit 251bf1a

File tree

1 file changed

+9
-1
lines changed
  • cpp/common/test/includes/standard-library

1 file changed

+9
-1
lines changed

cpp/common/test/includes/standard-library/mutex.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef _GHLIBCPP_MUTEX
22
#define _GHLIBCPP_MUTEX
3-
#include "chrono.h"
3+
#include <chrono>
44

55
namespace std {
66

@@ -77,6 +77,14 @@ template <typename Mutex> class lock_guard {
7777
mutex_type &_m;
7878
};
7979

80+
template <class... MutexTypes> class scoped_lock {
81+
public:
82+
explicit scoped_lock(MutexTypes &...m);
83+
scoped_lock(const scoped_lock &) = delete;
84+
scoped_lock &operator=(const scoped_lock &) = delete;
85+
~scoped_lock();
86+
};
87+
8088
} // namespace std
8189

8290
#endif // _GHLIBCPP_MUTEX

0 commit comments

Comments
 (0)