-
- Downloads
Fix stopping ubus thread during unloading chan_brcm.so module
When chan_brcm.so module is unloading we are trying to stop the ubus thread. With pthread_cancel() called before pthread_join() we are hanging for a long time since the thread has not set cancellation type. The cancellation type 'deferred' is set by default what means that cancellation is delayed until the thread next call, that takes time. Using pthread_kill() instead of pthread_cancel() makes the signal is sent to the thread immediately causing thread exits/joins suddenly.
Loading
Please register or sign in to comment