-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add sys module to mc-sgx-sync
#39
Conversation
1d47a22
to
6cb3d9e
Compare
193148c
to
90d36b4
Compare
6cb3d9e
to
a109b8a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code here generally seems reasonable, but is the intent to put the poison state into this structure in a later PR?
Poison state happens in |
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #39 +/- ##
===========================================
+ Coverage 68.23% 91.91% +23.67%
===========================================
Files 9 7 -2
Lines 318 235 -83
===========================================
- Hits 217 216 -1
+ Misses 101 19 -82
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
50bfc5b
to
329ce0a
Compare
The sys module contains a `Mutex` implementation for use in SGX enclaves
Previously the `mc-sgx-tstdc::Mutex::try_lock()` returned `Error::Busy` for the lock being in use. Now `mc-sgx-tstdc::Mutex::try_lock()` returns a boolean indicating if the lock was obtained and an `Err()` when there is unexpected behavior.
Update the root module for `sync/src/sys` to match newer rust file naming convention, https://doc.rust-lang.org/reference/items/modules.html#module-source-filenames
329ce0a
to
0947923
Compare
@varsha888 bumping for re-review due to restack |
✅ This pull request merged successfully as part of a Graphite job |
The sys module contains a
Mutex
implementation for use in SGX enclaves