summaryrefslogtreecommitdiffstats
path: root/camera
diff options
context:
space:
mode:
authorAkwasi Boateng <akwasi.boateng@ti.com>2011-11-22 14:05:22 -0600
committerIliyan Malchev <malchev@google.com>2011-12-01 12:20:10 -0800
commitbf20bcd681ad3c466099f45334bf639da9baedd0 (patch)
tree3f3c5a7e8402a2f3a68c7ac7d71f7a6a92347505 /camera
parent7a1746145a89cca0dafe26478a7675c15d5623a3 (diff)
downloadhardware_ti_omap4xxx-bf20bcd681ad3c466099f45334bf639da9baedd0.zip
hardware_ti_omap4xxx-bf20bcd681ad3c466099f45334bf639da9baedd0.tar.gz
hardware_ti_omap4xxx-bf20bcd681ad3c466099f45334bf639da9baedd0.tar.bz2
CameraHAL: Exit Appcallback thread immediately.
Allow appcallback thread to exit immediately when exit command is processed. Signed-off-by: Akwasi Boateng <akwasi.boateng@ti.com> Signed-off-by: Iliyan Malchev <malchev@google.com> Change-Id: I83db309cf973e1ce9494c855430897a0c41704d8
Diffstat (limited to 'camera')
-rw-r--r--camera/AppCallbackNotifier.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/camera/AppCallbackNotifier.cpp b/camera/AppCallbackNotifier.cpp
index 201460d..c845796 100644
--- a/camera/AppCallbackNotifier.cpp
+++ b/camera/AppCallbackNotifier.cpp
@@ -285,7 +285,8 @@ bool AppCallbackNotifier::notificationThread()
CAMHAL_LOGDA("Notification Thread received message from Camera HAL");
shouldLive = processMessage();
if(!shouldLive) {
- CAMHAL_LOGDA("Notification Thread exiting.");
+ CAMHAL_LOGDA("Notification Thread exiting.");
+ return shouldLive;
}
}