mirror of
https://github.com/cathery/sys-con.git
synced 2024-10-06 06:19:43 +00:00
pass function by address in input/output threads
This commit is contained in:
parent
d1ccd23813
commit
6f2f9349c4
@ -45,7 +45,7 @@ void outputThreadLoop(void *handler)
|
|||||||
Result SwitchVirtualGamepadHandler::InitInputThread()
|
Result SwitchVirtualGamepadHandler::InitInputThread()
|
||||||
{
|
{
|
||||||
m_keepInputThreadRunning = true;
|
m_keepInputThreadRunning = true;
|
||||||
Result rc = threadCreate(&m_inputThread, inputThreadLoop, this, NULL, 0x400, 0x3B, -2);
|
Result rc = threadCreate(&m_inputThread, &inputThreadLoop, this, NULL, 0x400, 0x3B, -2);
|
||||||
if (R_FAILED(rc))
|
if (R_FAILED(rc))
|
||||||
return rc;
|
return rc;
|
||||||
return threadStart(&m_inputThread);
|
return threadStart(&m_inputThread);
|
||||||
@ -61,7 +61,7 @@ void SwitchVirtualGamepadHandler::ExitInputThread()
|
|||||||
Result SwitchVirtualGamepadHandler::InitOutputThread()
|
Result SwitchVirtualGamepadHandler::InitOutputThread()
|
||||||
{
|
{
|
||||||
m_keepOutputThreadRunning = true;
|
m_keepOutputThreadRunning = true;
|
||||||
Result rc = threadCreate(&m_outputThread, outputThreadLoop, this, NULL, 0x400, 0x3B, -2);
|
Result rc = threadCreate(&m_outputThread, &outputThreadLoop, this, NULL, 0x400, 0x3B, -2);
|
||||||
if (R_FAILED(rc))
|
if (R_FAILED(rc))
|
||||||
return rc;
|
return rc;
|
||||||
return threadStart(&m_outputThread);
|
return threadStart(&m_outputThread);
|
||||||
|
Loading…
Reference in New Issue
Block a user