Move DiscordRPC to separate threaad

This commit is contained in:
2025-02-25 07:45:27 +01:00
parent 8049a3d986
commit 078470cc68
3 changed files with 68 additions and 56 deletions

View File

@@ -37,6 +37,8 @@ public:
int
run();
// issues request for a worker thread to perform specified task. returns: true if task was scheduled
void eu07_application::DiscordRPCService(); // discord rich presence service function (runs as separate thread)
bool
request( python_taskqueue::task_request const &Task );
// ensures the main thread holds the python gil and can safely execute python calls