X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=pbo_frame_allocator.cpp;h=370fa3d1ea7e145ce1f0e5dee54a2e7610a0f040;hb=e28cf300a89811daa3421e07a3377f617c23b3c1;hp=f64ea5ff519f0d6ce4ea3a0b0eab040a14c309aa;hpb=3cafda5de945dd02d321634abd61aa1e261f2384;p=nageru diff --git a/pbo_frame_allocator.cpp b/pbo_frame_allocator.cpp index f64ea5f..370fa3d 100644 --- a/pbo_frame_allocator.cpp +++ b/pbo_frame_allocator.cpp @@ -106,7 +106,7 @@ FrameAllocator::Frame PBOFrameAllocator::alloc_frame() { Frame vf; - std::unique_lock lock(freelist_mutex); // Meh. + unique_lock lock(freelist_mutex); // Meh. if (freelist.empty()) { printf("Frame overrun (no more spare PBO frames), dropping frame!\n"); } else { @@ -125,7 +125,7 @@ void PBOFrameAllocator::release_frame(Frame frame) printf("%d bytes overflow after last (PBO) frame\n", int(frame.overflow)); } - std::unique_lock lock(freelist_mutex); + unique_lock lock(freelist_mutex); freelist.push(frame); //--sumsum; }