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

Some potentially useful code to convert for linux #28

Open
awsdert opened this issue Jun 16, 2023 · 0 comments
Open

Some potentially useful code to convert for linux #28

awsdert opened this issue Jun 16, 2023 · 0 comments

Comments

@awsdert
Copy link

awsdert commented Jun 16, 2023

I figured out how to make templates in C89 AND how to potentially syncronise threads via a linked list (no mutices, semaphores, atomics etc) and figured maybe they could both be used to make linux even better than it already is.

For the template one I'll point to code actually using it for fixed width (not bit width, simply that they can be statically declared) integers:

https://gitlab.com/awsdert/dragonbuilder/-/blob/main/include/paw/pawint/pawe128d.h

As for the linked list thread syncronisation, the code I have is not in actual use simply because I feel like I missed something that should be considered, perfectly happy to let the technique be copied if I haven't though, all under MIT License:

https://gitlab.com/awsdert/dragonbuilder/-/blob/main/include/paw/_/all/all_pawsyn.h

And just in case the files do change in the future, here's the "historic" versions (I just went into file history and copied the latest hashed address):

https://gitlab.com/awsdert/dragonbuilder/-/blob/bfc5ef629fa59e8a32f299ca9f921acb464e2b03/include/paw/pawint/pawe128d.h

https://gitlab.com/awsdert/dragonbuilder/-/blob/8c15b7e4983142d4226c3a482e6029edcc908f8e/include/paw/_/all/all_pawsyn.h

Please do let me know if either happened to be useful

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

No branches or pull requests

1 participant