Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyncDisplay is not truly concurrent #80

Open
notgull opened this issue May 23, 2022 · 0 comments
Open

SyncDisplay is not truly concurrent #80

notgull opened this issue May 23, 2022 · 0 comments

Comments

@notgull
Copy link
Member

notgull commented May 23, 2022

SyncDisplay is essentially a wrapper around Mutex<BasicDisplay>, which means that it cannot send requests while reading an event. This could be solved by splitting BasicDisplay into a "state" part and an "I/O" part, and then further split I/O into a read/write part. That way, only one of those has to be locked at a time, allowing for concurrency. BasicDisplay would consist of "state" and "I/O" put together, while CellDisplay and SyncDisplay would wrap them using RefCell and Mutex, respectively.

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

No branches or pull requests

1 participant