mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[host] nvfbc: disable pointerThread when unused
fixes log spam that would occur when decoupleCursor=false
This commit is contained in:
parent
03ed8b7304
commit
c0aec7d8f4
@ -239,7 +239,7 @@ static bool nvfbc_init(void)
|
||||
|
||||
Sleep(100);
|
||||
|
||||
if (!lgCreateThread("NvFBCPointer", pointerThread, NULL, &this->pointerThread))
|
||||
if (this->seperateCursor && !lgCreateThread("NvFBCPointer", pointerThread, NULL, &this->pointerThread))
|
||||
{
|
||||
DEBUG_ERROR("Failed to create the NvFBCPointer thread");
|
||||
nvfbc_deinit();
|
||||
@ -254,12 +254,15 @@ static void nvfbc_stop(void)
|
||||
{
|
||||
this->stop = true;
|
||||
|
||||
lgSignalEvent(this->cursorEvent);
|
||||
|
||||
if (this->pointerThread)
|
||||
if (this->seperateCursor)
|
||||
{
|
||||
lgJoinThread(this->pointerThread, NULL);
|
||||
this->pointerThread = NULL;
|
||||
lgSignalEvent(this->cursorEvent);
|
||||
|
||||
if (this->pointerThread)
|
||||
{
|
||||
lgJoinThread(this->pointerThread, NULL);
|
||||
this->pointerThread = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user