瀏覽代碼

Corrected issue with input threads (RPI)

pull/892/head
Ray 5 年之前
父節點
當前提交
721d18589f
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. +3
    -2
      src/core.c

+ 3
- 2
src/core.c 查看文件

@ -765,12 +765,13 @@ void CloseWindow(void)
for (int i = 0; i < sizeof(eventWorkers)/sizeof(InputEventWorker); ++i)
{
if (eventWorkers[i].threadId == 0)
if (eventWorkers[i].threadId)
{
pthread_join(eventWorkers[i].threadId, NULL);
}
}
pthread_join(gamepadThreadId, NULL);
if (gamepadThreadId) pthread_join(gamepadThreadId, NULL);
#endif
TraceLog(LOG_INFO, "Window closed successfully");

Loading…
取消
儲存