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

feat: implement dedicated handler thread for IO operations #167

Merged
merged 1 commit into from
May 29, 2024

Conversation

knthm
Copy link
Contributor

@knthm knthm commented May 29, 2024

Previously, a new thread would be spawned for each IO operation, this would in some cases lead to race conditions as IO operations could overlap.

This prevents accidental simultaneous calls to the Android NFC methods, as well as performing better due to the lack of overhead from spawning new threads on each call.

@knthm knthm force-pushed the implement-dedicated-handler-thread branch from 2dbab25 to 13cd176 Compare May 29, 2024 13:53
This prevents accidental simultaneous calls to the Android NFC methods,
as well as performing better due to the lack of overhead from spawning
new threads on each call.
@knthm knthm force-pushed the implement-dedicated-handler-thread branch from 13cd176 to 829d0ea Compare May 29, 2024 15:02
@Harry-Chen Harry-Chen merged commit 0e53a9d into nfcim:master May 29, 2024
2 checks passed
@Harry-Chen
Copy link
Contributor

Many thanks again!

@knthm knthm deleted the implement-dedicated-handler-thread branch May 29, 2024 15:29
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

2 participants