projects
/
platform
/
core
/
api
/
efl-util.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
screenmirror : Set screenmirror thread name
[platform/core/api/efl-util.git]
/
src
/
efl_util.c
diff --git
a/src/efl_util.c
b/src/efl_util.c
index
6cb96d1
..
6eec154
100644
(file)
--- a/
src/efl_util.c
+++ b/
src/efl_util.c
@@
-14,6
+14,8
@@
* limitations under the License.
*/
* limitations under the License.
*/
+#define _GNU_SOURCE
+
#define LOG_TAG "TIZEN_N_EFL_UTIL"
#include <efl_util.h>
#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)
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();