-
Notifications
You must be signed in to change notification settings - Fork 16
Still having problem with the worker thread. #82
Comments
Do you call GameAnalytics::onQuit() when quiting the application? |
If you still have issues with the worker thread I can try to expose a method which tells if the thread has finished or not. |
Yes, I call
IDK if that will help. I can create a spin loop to wait untill the thread is finished but the problem may be cause by other thing. Can you think of any possible execution flow in method |
When
So in theory is should stop with a couple of seconds. I have not tested the dll scenario but maybe I will test it out to see what goes wrong. If you have a simple test project where this issue is reproducible I will be happy to test with that. |
Hmm, IDK then :( One thing I missed in the code snippets you showed is the presence of mutexes. IDK how you are managing the shared objects in the code but I expected to see some locks at least in the code that changes I can try to create a test application for you but it will take some days as I'm very busy nowadays :( |
_endThread is of type std::atomic so there should be no need for mutexes as it can only be accesed by one thread at a time. Ok thanks. I will try to make a project myself in the meantime |
I have tried to test the SDK using a DLL. I have just tested it in a simple windows desktop application made with C++. You can check it out here: https://drive.google.com/file/d/13O00rEboBO6oh4KNXQ9azz4xDKHNLi7y/view?usp=sharing You probably need to check the path to the GameAnalytics DLL before building the project. When I tested it, it worked when I called the |
HI, |
Do you also call onQuit? |
|
Ok would you be able to send me a test project where this is reproducible as I can't seem to reproduce it myself |
Sure, I try it.would you give me a e-mail address? |
Would can send it to [email protected] |
@the1schwartz @xdd12345 Any news in the subject? |
Sry,I've been a bit busy lately, forget it,The project has not been sent yet. It will be sent in this week. |
Hi,
I'm still having problem with the worker thread of the lib.
The thread sometimes just don't die properly upon
ExitProcess
.What is the correct way to get the thread object so I can assure the thread to be dead before the main thread exits its execution?
The text was updated successfully, but these errors were encountered: