X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fefl_util.c;h=6eec154323e1464d1905e50906c094429afb7da9;hb=b16d625a7589829e1ba9a088df188cab05604e70;hp=6cb96d1d1f2bd0109ab1eb1dfead96d206660605;hpb=726508c9a58e56a687b5a1e697c5d4069d64ac24;p=platform%2Fcore%2Fapi%2Fefl-util.git diff --git a/src/efl_util.c b/src/efl_util.c index 6cb96d1..6eec154 100644 --- a/src/efl_util.c +++ b/src/efl_util.c @@ -14,6 +14,8 @@ * limitations under the License. */ +#define _GNU_SOURCE + #define LOG_TAG "TIZEN_N_EFL_UTIL" #include @@ -2428,7 +2430,13 @@ efl_util_screenmirror_start(efl_util_screenmirror_h screenmirror) 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();