mozilla / audioipc

Cubeb Audio Remoting For Gecko
10 stars 17 forks source link

audioipc: Add thread_destroy_callback for unregistering profiler. #88

Closed kinetiknz closed 4 years ago

kinetiknz commented 4 years ago

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.

r? @ChunMinChang please