commit | b99975917585dc8973cc806a5da0aa3fc791b198 | [log] [tgz] |
---|---|---|
author | Tom Tsou <tom@tsou.cc> | Fri Nov 21 12:25:22 2014 -0800 |
committer | Tom Tsou <tom@tsou.cc> | Mon Dec 15 16:20:15 2014 -0700 |
tree | 559b7103e3c903f4f3f4c251798c9380ea75e579 | |
parent | 1ae25561fa3f6fe8295526b28031686c1123a8b6 [diff] |
CommonLibs: Add thread cancellation capability For clean shutdown in the transceiver we need to cancel and join running threads for orderly unwinding. Thread cancellation points already exist, so we just need to be able to call on the threads to exit out when stopping or shutting down. Don't error when joining a NULL thread, which would be the case if a thread was stopped before ever being started to begin with. Signed-off-by: Tom Tsou <tom@tsou.cc>