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

Support no-threads RTS mode #1590

Merged
merged 1 commit into from
Apr 13, 2024
Merged

Support no-threads RTS mode #1590

merged 1 commit into from
Apr 13, 2024

Conversation

plajjan
Copy link
Contributor

@plajjan plajjan commented Nov 22, 2023

This adds a mode for running the RTS without threads. It can be useful on platforms that do not have POSIX threads available, such as WASM.

Since one of the goals is to remove the need for pthreads, this must be chosen at compile time rather than run time. Use the --no-threads flag:

actonc --no-threads foo.act

This adds a mode for running the RTS without threads. It can be useful
on platforms that do not have POSIX thread available, such as
WASM (although we are far from being able to run on WASM for other
reasons).

Since one of the goals is to remove the needs for pthreads, this must be
chosen at compile time rather than run time. Use the --no-threads flag:

  actonc --no-threads foo.act

The DB support currently requires threads. To get past compilation,
pthread is made optional and instead results in an error if attempted to
be used at run time.
@plajjan plajjan merged commit 4916a26 into main Apr 13, 2024
27 checks passed
@plajjan plajjan deleted the no-threads branch April 13, 2024 22:04
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