Skip to content

Commit 802ab4a

Browse files
committedAug 17, 2023
ndk: Add more detailed description about safety of AMidi functions to ndk::midi::safe
1 parent 5428ca7 commit 802ab4a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎ndk/src/midi/safe.rs

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
//! the Java VM when being dropped, which is required by [`AMidiDevice_release`]. All other types
55
//! of this module holds an [`Arc`] of `SafeMidiDeviceBox`.
66
//!
7+
//! Note that all other functions except for [`AMidiDevice_fromJava`] and [`AMidiDevice_release`]
8+
//! are safe to be called in any thread without the calling thread attached to the Java VM.
9+
//!
710
//! [`AMidiDevice`]: https://developer.android.com/ndk/reference/group/midi#amididevice
811
//! [`AMidiDevice_release`]: https://developer.android.com/ndk/reference/group/midi#amididevice_release
912
//! [`AMidiInputPort`]: https://developer.android.com/ndk/reference/group/midi#amidiinputport

0 commit comments

Comments
 (0)
Please sign in to comment.