Skip to content

[flutter_webrtc] Remove Ecore API#1045

Merged
xiaowei-guan merged 4 commits into
flutter-tizen:masterfrom
xiaowei-guan:webrtc_remove_ecore
Jun 18, 2026
Merged

[flutter_webrtc] Remove Ecore API#1045
xiaowei-guan merged 4 commits into
flutter-tizen:masterfrom
xiaowei-guan:webrtc_remove_ecore

Conversation

@xiaowei-guan

Copy link
Copy Markdown
Contributor

Use g_idle_add_full instead of ecore_main_loop_thread_safe_call_async

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request replaces the Ecore main loop thread-safe call with GLib's idle source (g_idle_add_full) in TaskRunnerTizen. Feedback focuses on managing the lifecycle of the GLib idle source by tracking its ID to prevent use-after-free crashes, avoiding redundant idle source scheduling, and executing tasks outside of the mutex lock to prevent deadlocks. Additionally, it is recommended to remove the unused <Ecore.h> header.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread packages/flutter_webrtc/tizen/inc/task_runner_tizen.h
Comment thread packages/flutter_webrtc/tizen/src/task_runner_tizen.cc
Comment thread packages/flutter_webrtc/tizen/src/task_runner_tizen.cc
Comment thread packages/flutter_webrtc/tizen/inc/task_runner_tizen.h
@xiaowei-guan xiaowei-guan merged commit 28d8fa9 into flutter-tizen:master Jun 18, 2026
6 checks passed
- Use g_idle_add_full instead of ecore_main_loop_thread_safe_call_async
- RunTask returns G_SOURCE_REMOVE to remove idle source after processing
- Simplified implementation by removing idle_source_id_ tracking

Co-Authored-By: Cline SR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants