Skip to content

Replace Ecore Queue with Message Loop#155

Open
xiaowei-guan wants to merge 9 commits intoflutter-tizen:masterfrom
xiaowei-guan:3.38.8
Open

Replace Ecore Queue with Message Loop#155
xiaowei-guan wants to merge 9 commits intoflutter-tizen:masterfrom
xiaowei-guan:3.38.8

Conversation

@xiaowei-guan
Copy link
Contributor

@xiaowei-guan xiaowei-guan commented Feb 11, 2026

Fix #149

@xiaowei-guan xiaowei-guan marked this pull request as draft February 11, 2026 12:29
Copy link

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

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 queue with a custom MessageLoop class using standard C++ threading primitives. This is a positive change that reduces external dependencies. The new implementation is largely correct, but I have identified a few areas for improvement regarding safety, code clarity, and structure. My review includes suggestions to refactor the MessageLoop initialization to make it safer, improve a lambda capture for better robustness, and enhance code organization by moving the new general-purpose class to its own files.

@xiaowei-guan xiaowei-guan marked this pull request as ready for review February 12, 2026 06:11
Copy link

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

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-based thread queue in TizenVsyncWaiter with a custom MessageLoop class implemented using standard C++ threading primitives, which improves portability and maintainability by removing a dependency on Ecore. However, a critical regression was identified: a previously existing validation check for the TDM client state was removed. This omission could lead to an application crash if the TDM subsystem fails to initialize correctly. Additionally, there is a suggestion to further align the new MessageLoop class with the project's C++ style guidelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Import FML event loop

2 participants