thread_create_callback is used to register AudioIPC threads with Gecko's profiler. Per BMO 1614547 and related bugs, we also need to ensure threads unregister when destroyed. This adds thread_destroy_callback and arranges for it to be called in the appropriate places.
thread_create_callback
is used to register AudioIPC threads with Gecko's profiler. Per BMO 1614547 and related bugs, we also need to ensure threads unregister when destroyed. This addsthread_destroy_callback
and arranges for it to be called in the appropriate places.r? @ChunMinChang please