event_queues: Use std placeholders
This commit is contained in:
parent
b4df90d8e4
commit
dd7d232ac3
|
@ -7,8 +7,6 @@
|
||||||
#include "core/libraries/error_codes.h"
|
#include "core/libraries/error_codes.h"
|
||||||
#include "core/libraries/kernel/event_queues.h"
|
#include "core/libraries/kernel/event_queues.h"
|
||||||
|
|
||||||
#include <boost/asio/placeholders.hpp>
|
|
||||||
|
|
||||||
namespace Libraries::Kernel {
|
namespace Libraries::Kernel {
|
||||||
|
|
||||||
extern boost::asio::io_context io_context;
|
extern boost::asio::io_context io_context;
|
||||||
|
@ -137,7 +135,7 @@ s32 PS4_SYSV_ABI sceKernelAddHRTimerEvent(SceKernelEqueue eq, int id, timespec*
|
||||||
io_context, std::chrono::microseconds(total_us - HrTimerSpinlockThresholdUs));
|
io_context, std::chrono::microseconds(total_us - HrTimerSpinlockThresholdUs));
|
||||||
|
|
||||||
event.timer->async_wait(
|
event.timer->async_wait(
|
||||||
std::bind(SmallTimerCallback, boost::asio::placeholders::error, eq, event.event));
|
std::bind(SmallTimerCallback, std::placeholders::_1, eq, event.event));
|
||||||
|
|
||||||
if (!eq->AddEvent(event)) {
|
if (!eq->AddEvent(event)) {
|
||||||
return ORBIS_KERNEL_ERROR_ENOMEM;
|
return ORBIS_KERNEL_ERROR_ENOMEM;
|
||||||
|
|
Loading…
Reference in New Issue