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 stream callback safe for the multi-thread server #43

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

nitely
Copy link
Owner

@nitely nitely commented Jan 29, 2025

in theory passing a ptr object storing GC data types to threads should be ok, but better make the callback a nimcall to be safe.

@nitely nitely changed the title SafeStreamCallback Do not allow closures as stream callbacks for the multi-thread server Jan 29, 2025
@nitely nitely changed the title Do not allow closures as stream callbacks for the multi-thread server Make stream callback safe for the multi-thread server Jan 29, 2025
@nitely nitely merged commit c250bcf into master Jan 29, 2025
2 checks passed
@nitely nitely deleted the safe_stream_callback branch January 29, 2025 04:35
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.

1 participant