You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
SyncDisplay
is essentially a wrapper aroundMutex<BasicDisplay>
, which means that it cannot send requests while reading an event. This could be solved by splittingBasicDisplay
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, whileCellDisplay
andSyncDisplay
would wrap them usingRefCell
andMutex
, respectively.The text was updated successfully, but these errors were encountered: