Skip to content
Snippets Groups Projects
Commit 6523e4ea authored by Grzegorz Sluja's avatar Grzegorz Sluja Committed by Sukru Senli
Browse files

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.
parent cdce3c5a
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment