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

Tidy up our synchronization code #413

Merged
merged 3 commits into from
Mar 25, 2024
Merged

Conversation

qwwdfsad
Copy link
Collaborator

@qwwdfsad qwwdfsad commented Mar 21, 2024

This is a prerequisite for #412 to simplify further development and maintenance

The current state:

  • No semantic changes
  • All interop-related code confined to a dedicated class
  • Trivial attempt to get rid of cinterop failed, I've left a few pointers (or can I say CPointers?)

Further step:

@qwwdfsad qwwdfsad requested a review from fzhinkin March 21, 2024 13:10
* The problem is, commonizer cannot commonize pthreads, thus this declaration should be duplicated
* over multiple Native source-sets to work properly
*/
//public class NativeMutexNode {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you expect commonizer being able to unlock this implementation one day? Do we really need to keep it here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This, or that we'll decide to give up on the commonizer and just copy-paste it over a few native sourcesets

@qwwdfsad qwwdfsad merged commit fe708c2 into optimize-synchronized Mar 25, 2024
2 checks passed
@qwwdfsad qwwdfsad deleted the synchronized-rehaul branch March 25, 2024 13:23
qwwdfsad added a commit that referenced this pull request Apr 19, 2024
* Confine all interop signatures into NativeMutexNode to simplify further working and maintenance
* Get rid of mutex_node_t
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.

2 participants