Also stop value has been wrong operation.
Change-Id: Ie860c2516144fd9bc40af5e6ef5836dcb0d71f0a
}
if (pthread_join(tid, (void**)&ptr) < 0) {
}
if (pthread_join(tid, (void**)&ptr) < 0) {
MODULE_ERROR("pthread_join is failed : %s", strerror(errno));
return -1;
}
MODULE_ERROR("pthread_join is failed : %s", strerror(errno));
return -1;
}
tid = 0;
if (ptr == PTHREAD_CANCELED) {
MODULE_LOG("pthread canceled");
tid = 0;
if (ptr == PTHREAD_CANCELED) {
MODULE_LOG("pthread canceled");
MODULE_LOG("clean up handler!!! : %d", tid);
MODULE_LOG("clean up handler!!! : %d", tid);
for (i = 0; i < pbuffer->channels; ++i) {
free(pbuffer->ppbuffer[i]);
pbuffer->ppbuffer[i] = NULL;
for (i = 0; i < pbuffer->channels; ++i) {
free(pbuffer->ppbuffer[i]);
pbuffer->ppbuffer[i] = NULL;
+ pthread_mutex_lock(&mutex);
+ __haptic_predefine_action(gbuffer.handle, STOP, NULL);
+ pthread_mutex_unlock(&mutex);
+
pthread_cleanup_pop(1);
pthread_exit((void *)0);
}
pthread_cleanup_pop(1);
pthread_exit((void *)0);
}