Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smaller mutex scope + use new SDK android methods (Defold 1.2.188) #40

Merged
merged 1 commit into from Oct 28, 2021

Conversation

AGulev
Copy link
Contributor

@AGulev AGulev commented Oct 27, 2021

No description provided.

@AGulev AGulev requested a review from britzl October 27, 2021 16:12
jclass cls = class_loader.load("com.defold.gpgs.GpgsJNI");
dmAndroid::ThreadAttacher threadAttacher;
JNIEnv* env = threadAttacher.GetEnv();
jclass cls = dmAndroid::LoadClass(env, "com.defold.gpgs.GpgsJNI");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to see these in action!

Copy link
Contributor

@britzl britzl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Comment on lines +140 to +144
dmArray<CallbackData> tmp;
{
DM_MUTEX_SCOPED_LOCK(m_mutex);
tmp.Swap(m_callbacksQueue);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@AGulev AGulev merged commit cf4e61d into master Oct 28, 2021
@AGulev AGulev deleted the mutex-fix-and-188 branch October 28, 2021 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants