-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve shared rti accesses by replacing mutex with RwLock
- Multiple read accesses without any write access are now possible and only one write access is allowed for shared rti variables.
- Loading branch information
1 parent
7ba3d49
commit ababa5e
Showing
6 changed files
with
278 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,33 +4,53 @@ on: | |
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
# branches: [ "main" ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
# build: | ||
# runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build | ||
run: cd rust/rti; cargo build --verbose | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - name: Build | ||
# run: cd rust/rti; cargo build --verbose | ||
|
||
unit-tests: | ||
runs-on: ubuntu-latest | ||
# unit-tests: | ||
# runs-on: ubuntu-latest | ||
|
||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - name: Unit tests | ||
# run: cd rust/rti; cargo test | ||
|
||
# fetch-rust-rti: | ||
# runs-on: ubuntu-latest | ||
|
||
# steps: | ||
# - uses: actions/checkout@v3 | ||
|
||
lf-rust-rti: | ||
# needs: fetch-rust-rti | ||
# # TODO(chanijjani): Change the pointer to point to the main lingua-franca repo. | ||
# uses: chanijjani/lingua-franca/.github/workflows/c-tests-with-rust-rti.yml@integration_tests_with_rust_rti | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Unit tests | ||
run: cd rust/rti; cargo test | ||
|
||
# fetch-lf: | ||
# uses: chanijjani/lingua-franca/.github/workflows/extract-ref.yml@master | ||
# with: | ||
# file: 'lingua-franca-ref.txt' | ||
|
||
lf-default: | ||
# TODO(chanijjani): Change the pointer to point to the main lingua-franca repo. | ||
uses: chanijjani/lingua-franca/.github/workflows/c-tests-with-rust-rti.yml@integration_tests_with_rust_rti | ||
- name: Check out lingua-franca repository | ||
uses: actions/checkout@v3 | ||
with: | ||
# TODO: Change the below repo into 'lf-lang/lingua-franca' | ||
# after this PR is merged to lf-lang/lingua-franca@master. | ||
repository: chanijjani/lingua-franca | ||
submodules: true | ||
fetch-depth: 0 | ||
- name: Prepare build environment | ||
uses: chanijjani/lingua-franca/.github/actions/prepare-build-env@integration_tests_with_rust_rti | ||
- name: Check out the current PR | ||
uses: actions/checkout@v3 | ||
- name: Perform federated tests for C target with Rust RTI | ||
# TODO: Drop "git checkout" after this PR is merged to lf-lang/lingua-franca@master. | ||
run: git clone [email protected]:chanijjani/lingua-franca.git; cd lingua-franca; git checkout integration_tests_with_rust_rti; ./gradlew targetTest -Ptarget=RustRti |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.