diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2016-01-30 20:43:50 +0100 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2016-01-30 20:43:50 +0100 |
commit | 42622cfe8effd40c0bf63030738e43feaa6999d6 (patch) | |
tree | ed9b2fca652c236a1a881c926a7f35fbd9dbcb3d /src/mame/video/chihiro.cpp | |
parent | 81123aa4b5a8973298c5a6e46655fb2dcd05a494 (diff) |
replace osd_lock with std::mutex [Miodrag Milanovic]
Diffstat (limited to 'src/mame/video/chihiro.cpp')
-rw-r--r-- | src/mame/video/chihiro.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mame/video/chihiro.cpp b/src/mame/video/chihiro.cpp index 9f803c45651..e6c8e578bb6 100644 --- a/src/mame/video/chihiro.cpp +++ b/src/mame/video/chihiro.cpp @@ -1953,7 +1953,7 @@ void nv2a_renderer::render_register_combiners(INT32 scanline, const extent_t &ex if ((extent.startx < 0) || (extent.stopx > 640)) return; - osd_lock_acquire(combiner.lock); // needed since multithreading is not supported yet + std::lock_guard<std::mutex> lock(combiner.lock); // needed since multithreading is not supported yet x = extent.stopx - extent.startx - 1; // number of pixels to draw while (x >= 0) { xp = extent.startx + x; @@ -1998,7 +1998,6 @@ void nv2a_renderer::render_register_combiners(INT32 scanline, const extent_t &ex write_pixel(xp, scanline, a8r8g8b8, z); x--; } - osd_lock_release(combiner.lock); } #if 0 |