--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/2abe8271-c23a-453f-9df3-0b3c5aaebd81%40googlegroups.com.
I'm no official authority.I can say, there are no issues logging from multiple threads.The messages are generated as an entire packet and do not interleave.
On Fri, Dec 13, 2019 at 8:56 PM Jesse Krebs <scga...@gmail.com> wrote:
--I'm using logging functions from the NDK, e.g. __android_log_write():I haven't been able to find any solid information as to whether these functions are thread safe. I often see them and their non-native counterparts (Log.d(), etc.) used from multiple threads (including, I think, in Google's own code) with no obvious signs of synchronization, which suggests they're expected to be thread safe, but I haven't been able to confirm this.A related question is whether messages logged via these functions are guaranteed to be atomic with respect to Logcat.In summary:- Are the native logging functions (__android_log_write(), etc.) thread safe in the sense of being usable from multiple threads without concern for crashes or other undesirable behavior?- Beyond that, are messages logged via these functions guaranteed to be atomic (that is, not interleaved at the character level) in Logcat?
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to andro...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/f954986e-7487-4c36-850b-4c10e250bdb3%40googlegroups.com.