mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
atomic.hpp: add atomic_t<bool> specialization
May be required in future, plus adds/hides some methods.
This commit is contained in:
parent
eb66302907
commit
24e4e329ed
6 changed files with 96 additions and 6 deletions
|
|
@ -639,7 +639,7 @@ s32 cellCameraIsOpen(s32 dev_num)
|
|||
|
||||
std::lock_guard lock(g_camera->mutex);
|
||||
|
||||
return g_camera->is_open;
|
||||
return g_camera->is_open.load();
|
||||
}
|
||||
|
||||
s32 cellCameraIsStarted(s32 dev_num)
|
||||
|
|
@ -665,7 +665,7 @@ s32 cellCameraIsStarted(s32 dev_num)
|
|||
|
||||
std::lock_guard lock(g_camera->mutex);
|
||||
|
||||
return g_camera->is_streaming;
|
||||
return g_camera->is_streaming.load();
|
||||
}
|
||||
|
||||
error_code cellCameraGetAttribute(s32 dev_num, s32 attrib, vm::ptr<u32> arg1, vm::ptr<u32> arg2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue