Skip to content

Commit a7b7001

Browse files
[gpu] Replace lock in records_maps_rgb tool.
1 parent 83a8df2 commit a7b7001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gpu/kinfu_large_scale/tools/record_maps_rgb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ MapsBuffer::getFront(bool print)
163163
{
164164
boost::shared_ptr< const MapsBuffer::MapsRgb > depth_rgb;
165165
{
166-
std::lock_guard<std::mutex> buff_lock (bmutex_);
166+
std::unique_lock<std::mutex> buff_lock (bmutex_);
167167
while (buffer_.empty ())
168168
{
169169
if (is_done)

0 commit comments

Comments
 (0)