Change-Id: Id7fe72386707983c37abad1097661433cefca0f7
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
* limitations under the License.
*/
* limitations under the License.
*/
#define LOG_TAG "TIZEN_N_EFL_UTIL"
#include <efl_util.h>
#define LOG_TAG "TIZEN_N_EFL_UTIL"
#include <efl_util.h>
ret = pthread_create(&screenmirror->thread, NULL, _efl_util_screenmirror_loop, screenmirror);
if (ret < 0)
ret = pthread_create(&screenmirror->thread, NULL, _efl_util_screenmirror_loop, screenmirror);
if (ret < 0)
- fprintf(stderr, "[screenmirror] fail: thread create fail\n");
+ {
+ fprintf(stderr, "[screenmirror] fail: thread create fail\n");
+ _screenshot_mutex_unlock();
+ return EFL_UTIL_ERROR_SCREENSHOT_EXECUTION_FAIL;
+ }
+
+ pthread_setname_np(screenmirror->thread, "e_util_mirror");
_screenshot_mutex_unlock();
_screenshot_mutex_unlock();