buffer: Add proper lock mechanism to lock the full LineArray instead of single lines by JoeKar · Pull Request #3224 · micro-editor/micro (original) (raw)

dmaluka

dmaluka

dmaluka

dmaluka

@JoeKar @dmaluka

This is necessary as a preparation to introduce a lock for the whole LineArray. The modification can then be done without trying to lock the same lock twice.

Co-authored-by: Dmytro Maluka dmitrymaluka@gmail.com

@JoeKar

@JoeKar

...which isn't used so far and probably handled better in a different way.

@JoeKar

@JoeKar @dmaluka

This is achieved by the usage of the new LineArray locking machanism, which prevents the interruption in the moment of modifications like insertion or removal of lines.

Co-authored-by: Dmytro Maluka dmitrymaluka@gmail.com

@JoeKar

...since we fixed the race between the syntax highlighting and the buffer editing.

@JoeKar JoeKar deleted the fix/line-synchronization branch

April 5, 2024 22:09

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})