Skip to content

Move to use RefCell in Printer#810

Open
xilec wants to merge 1 commit into
gyscos:mainfrom
xilec:ref-cell-print-buffer
Open

Move to use RefCell in Printer#810
xilec wants to merge 1 commit into
gyscos:mainfrom
xilec:ref-cell-print-buffer

Conversation

@xilec

@xilec xilec commented Feb 22, 2025

Copy link
Copy Markdown
Contributor

Printer already is !Sync therefore it seems more suitable use &RefCell<PrintBuffer> instead of &RwLock<PrintBuffer>. It will be much more convenient for debug (panic instead of deadlock in case of incorrect use) and faster.

@xilec

xilec commented Apr 15, 2025

Copy link
Copy Markdown
Contributor Author

@gyscos, can you review this PR?

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.

1 participant