mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-19 00:31:39 +00:00
Android: Remove HostThreadLocks that are no longer needed
71ce8bb6f0
got rid of the need to be the
host or CPU thread when writing to the config.
This commit is contained in:
parent
f79c88f30b
commit
5bda811a00
2 changed files with 3 additions and 14 deletions
|
@ -531,18 +531,12 @@ JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_Initialize(J
|
|||
JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_ReportStartToAnalytics(JNIEnv*,
|
||||
jclass)
|
||||
{
|
||||
// Identity generation ends up calling config code, and some config callbacks use RunAsCPUThread
|
||||
HostThreadLock guard;
|
||||
|
||||
DolphinAnalytics::Instance().ReportDolphinStart(GetAnalyticValue("DEVICE_TYPE"));
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_GenerateNewStatisticsId(JNIEnv*,
|
||||
jclass)
|
||||
{
|
||||
// Identity generation ends up calling config code, and some config callbacks use RunAsCPUThread
|
||||
HostThreadLock guard;
|
||||
|
||||
DolphinAnalytics::Instance().GenerateNewIdentity();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue