Hi,

Even if you aren't creating per-thread objects, java is when you register the thread. Two options I can see are:
1) tidy up before you return control - this would mean register the thread with java only while in your logging callback and unregister before returning.
2) Only log to java from a single thread and get the other threads to queue the log messages up in some global object.

I expect my second option is actually the most practical. You can have a thread then runs as long as any task is running and just pulls log messages out of the queue and posts them to java.

Hope that's helpful.

Simon

Sent from my Huawei Mobile
_______________________________________________
Libav-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to