Change-Id: Ib1dafd777acaa7da520ac7aae050a05b1d607dca
Signed-off-by: Segwon <segwon.han@samsung.com>
int peripheral_interface_gpio_unset_interrupted_cb(peripheral_gpio_h gpio)
{
gpio->cb_info.status = GPIO_INTERRUPTED_CALLBACK_UNSET;
- g_thread_join(gpio->cb_info.thread);
+
+ if (gpio->cb_info.thread != NULL) {
+ g_thread_join(gpio->cb_info.thread);
+ gpio->cb_info.thread = NULL;
+ }
return PERIPHERAL_ERROR_NONE;
}
\ No newline at end of file
return ret;
}
+ handle->cb_info.thread = NULL;
*gpio = handle;
return PERIPHERAL_ERROR_NONE;