YAGL_LOG_FUNC_SET looks into cur_ts global variable to read current
PID/TID. Unforutnately on multithreaded app scenarios, this can cause
a segmentation failure so was temporarily removed.
Change-Id: I253c9e38545b98d47dcdcd485966c5a838145ffb
Signed-off-by: Lukasz Kostyra <l.kostyra@samsung.com>
[cw00.choi: Apply it from tizen branch by using cherry-pick git command]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
} \
} while(0)
+// TODO _yagl_log_current_pid/tid must be restored to proper form
+// PID/TID must be read in a different way than via global cur_ts
#define YAGL_LOG_FUNC_SET(func) \
const char* _yagl_log_current_func = #func; \
- yagl_pid _yagl_log_current_pid = (cur_ts ? cur_ts->ps->id : 0); \
- yagl_tid _yagl_log_current_tid = (cur_ts ? cur_ts->id : 0)
+ yagl_pid _yagl_log_current_pid = 0; \
+ yagl_tid _yagl_log_current_tid = 0
#define YAGL_LOG_FUNC_ENTER(func, format, ...) \
YAGL_LOG_FUNC_SET(func); \