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

sheet: Fix cursor movement after transformation #346

Conversation

devin-ai-integration[bot]
Copy link

@devin-ai-integration devin-ai-integration bot commented Dec 18, 2024

Fixes #345

Added atomic operations for bit field updates to ensure proper thread synchronization, particularly important for macOS memory ordering.

Changes:

  • Use atomic operations for all bit field updates (worker_cancelled, index_ready, write_done, etc.)
  • Add memory barriers between bit field and row count updates
  • Implement thread-safe row count access with proper synchronization
  • Create dedicated ui_buffer.h for atomic flag operations
  • Add atomic checks in cursor movement code

Testing:

  • Tested cursor movement after transformation on Linux
  • Verified with manual test steps from issue
  • Added comprehensive atomic operations across UI-related files
  • Need confirmation on macOS-14 for memory ordering fixes

Link to Devin run: https://app.devin.ai/sessions/2dede99506024675a14d5fbc55f38c71

- Add memory barriers to ensure row count updates are visible
- Add mutex protection for UI buffer dimension updates
- Document thread safety requirements

Fixes #345

Co-Authored-By: Matt Wong <[email protected]>
Copy link
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Add "(aside)" to your comment to have me ignore it.

devin-ai-integration bot and others added 24 commits December 18, 2024 20:33
…formation-cursor' into devin/1734550962-fix-sheet-transformation-cursor

Co-Authored-By: Matt Wong <[email protected]>
@liquidaty liquidaty closed this Dec 19, 2024
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.

extension transformation example misbehaves
1 participant