Skip to content

Commit 652d190

Browse files
committed
lock_guard
1 parent 4547849 commit 652d190

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/patterns.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ class Synchronized_queue
884884
condition_variable cv;
885885
void push(T&& v)
886886
{
887-
scoped_lock<mutex> { mtx }, Container::push(v);
887+
lock_guard<mutex> { mtx }, Container::push(v);
888888
cv.notify_one();
889889
};
890890

0 commit comments

Comments
 (0)