OSDN Git Service

alsabat: add terminate status check for capture thread
authorLu, Han <han.lu@intel.com>
Sun, 17 Apr 2016 01:26:45 +0000 (09:26 +0800)
committerTakashi Iwai <tiwai@suse.de>
Mon, 18 Apr 2016 14:34:08 +0000 (16:34 +0200)
commit569f2c116ee30de8a16fef0822e13dd33a41f33e
treeefc3e9bb4f1b0b186246c95f264a499d98f4a511
parent85827fbb642463ab724a9471a7a88f93fa2a217d
alsabat: add terminate status check for capture thread

In loopback test, alsabat use pthread_join(pthread_t thread, **retval)
to wait for the capture thread to terminate. If the capture thread was
canceled, PTHREAD_CANCELED is placed in *retval, and the access to the
**retval will fail. Add status check to prevent illegal access to the
**retval.

Signed-off-by: Lu, Han <han.lu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
bat/bat.c