Skip to content
Discussion options

You must be logged in to vote

No, you need to manage that yourself. It's just standard multi-threaded notification stuff. Set a variable or signal some kind of synchronization primitive that the main thread is continuously monitoring. When the variable is set, or the sync primitive is signalled, have the main thread do the uninit process.

Alternatively, consider using the high level API which will allow you to skip the data callback completely.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ahmadharis4u
Comment options

@mackron
Comment options

Answer selected by ahmadharis4u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants