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

Trying to understand how it works... #9

Open
Prikalel opened this issue Jan 14, 2022 · 1 comment
Open

Trying to understand how it works... #9

Prikalel opened this issue Jan 14, 2022 · 1 comment

Comments

@Prikalel
Copy link

Why do you create new thread here?
As it mentioned in documentation we can just do that:

mHandler.postDelayed(new Runnable() {
                @Override
                public void run() {
                    stopLEScan();
                }
            }, scanTimeoutMillisecond);

Isn't it?

@Prikalel
Copy link
Author

Prikalel commented Feb 4, 2022

And why do you use Lock here:


?
Is it necessarily?
Let us say, I made java-side absolutely consistent (no new threads or async tasks) then do I need this lock when calling c++ from java?

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

No branches or pull requests

1 participant