summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunkyeong Kim <jk0430.kim@samsung.com>2023-04-27 19:30:09 +0900
committerJunkyeong Kim <jk0430.kim@samsung.com>2023-04-27 19:30:12 +0900
commitb16d625a7589829e1ba9a088df188cab05604e70 (patch)
tree057696e3e1e18a101ad48f6bda00d384d3a1e83f
parent726508c9a58e56a687b5a1e697c5d4069d64ac24 (diff)
downloadefl-util-b16d625a7589829e1ba9a088df188cab05604e70.tar.gz
efl-util-b16d625a7589829e1ba9a088df188cab05604e70.tar.bz2
efl-util-b16d625a7589829e1ba9a088df188cab05604e70.zip
screenmirror : Set screenmirror thread name
Change-Id: Id7fe72386707983c37abad1097661433cefca0f7 Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
-rw-r--r--src/efl_util.c10
1 files changed, 9 insertions, 1 deletions
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 <efl_util.h>
@@ -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();