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

Make the C runtime thread-safe #776

Merged
merged 1 commit into from
Jan 21, 2025
Merged

Make the C runtime thread-safe #776

merged 1 commit into from
Jan 21, 2025

Conversation

AltGr
Copy link
Contributor

@AltGr AltGr commented Jan 21, 2025

by specifying the the heap should be allocated for each thread.

catala_init should still be called just once
catala_free_all will actually only free the memory of the current
thread (IIUC it will be reclaimed automatically upon death anyway)

Note: this is a test and hasn't been tested whatsoever

by specifying the the heap should be allocated for each thread.

→ `catala_init` should still be called just once
→ `catala_free_all` will actually only free the memory of the current
  thread (IIUC it will be reclaimed automatically upon death anyway)
Copy link
Contributor

@vincent-botbol vincent-botbol left a comment

Choose a reason for hiding this comment

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

Tested collegially. It works perfectly.

@vincent-botbol vincent-botbol merged commit c3072bc into master Jan 21, 2025
5 checks passed
@vincent-botbol vincent-botbol deleted the threadsafe branch January 21, 2025 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants