{
#if ENABLE(TIZEN_RUNLOOP_WAKEUP_ERROR_WORKAROUND)
Eina_Bool result = false;
- while(1) {
- result = ecore_pipe_write(m_pipe.get(), wakupEcorePipeMessage, ecorePipeMessageSize);
- if (result)
- return;
-
- LOG_ERROR("Failed to write a wakupEcorePipeMessage\n");
- m_pipe = adoptPtr(ecore_pipe_add(wakeUpEvent, this)); // due to OwnPtr, ecore_pipe_del is called automatically.
+ if (m_functionQueue.size() == 1) {
+ while(1) {
+ result = ecore_pipe_write(m_pipe.get(), wakupEcorePipeMessage, ecorePipeMessageSize);
+ if (result)
+ return;
+
+ LOG_ERROR("Failed to write a wakupEcorePipeMessage\n");
+ m_pipe = adoptPtr(ecore_pipe_add(wakeUpEvent, this)); // due to OwnPtr, ecore_pipe_del is called automatically.
+ }
}
#else
// should not call ecore_pipe_write every time.