-
Notifications
You must be signed in to change notification settings - Fork 282
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
feature(neon): API for thread-local data #902
Commits on May 24, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 94111d4 - Browse repository at this point
Copy the full SHA 94111d4View commit details
Commits on May 25, 2022
-
- `GlobalTable::default()` to avoid boilerplate `new()` method - Rename `borrow()` and `borrow_mut()` to `get()` and `get_mut()` - Add `'static` bound to global contents - Use `cloned()` in test code
Configuration menu - View commit details
-
Copy full SHA for f872b76 - Browse repository at this point
Copy the full SHA f872b76View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f12663 - Browse repository at this point
Copy the full SHA 6f12663View commit details -
Get rid of
[]
overloading forGlobalTable
in favor of an inherent…… `get()` method.
Configuration menu - View commit details
-
Copy full SHA for 18e60f1 - Browse repository at this point
Copy the full SHA 18e60f1View commit details -
- `Global<T>::get()` returns an `Option<&T>` - `Global<T>::get_or_init()` returns an `&T` - Lifetime of returned reference is the inner `'cx` since the boxed reference is immutable
Configuration menu - View commit details
-
Copy full SHA for b8b089b - Browse repository at this point
Copy the full SHA b8b089bView commit details -
Explicitly name the types in the transmute
Co-authored-by: K.J. Valencik <kjvalencik@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for cf0d32a - Browse repository at this point
Copy the full SHA cf0d32aView commit details -
Configuration menu - View commit details
-
Copy full SHA for f5cd0ba - Browse repository at this point
Copy the full SHA f5cd0baView commit details
Commits on May 27, 2022
-
Add
get_or_try_init
andget_or_init_default
- Also rename `get_or_init` to `get_or_init_with` - Also add `get_or_init` that takes an owned init value
Configuration menu - View commit details
-
Copy full SHA for aee77f4 - Browse repository at this point
Copy the full SHA aee77f4View commit details
Commits on Jun 1, 2022
-
Protect re-entrant cases with "dirty" state checking
- Uses an RAII pattern to ensure `get_or_try_init` always terminates cleanly - All initialization paths are checked for the dirty state to avoid re-entrancy - Also adds API docs and safety comments
Configuration menu - View commit details
-
Copy full SHA for 9075b76 - Browse repository at this point
Copy the full SHA 9075b76View commit details -
Configuration menu - View commit details
-
Copy full SHA for b28f439 - Browse repository at this point
Copy the full SHA b28f439View commit details -
Configuration menu - View commit details
-
Copy full SHA for bbc4f22 - Browse repository at this point
Copy the full SHA bbc4f22View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff75d2d - Browse repository at this point
Copy the full SHA ff75d2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d9b8251 - Browse repository at this point
Copy the full SHA d9b8251View commit details
Commits on Jun 2, 2022
-
Global::new() can use the derived Default::default()
Co-authored-by: K.J. Valencik <kjvalencik@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for a66e511 - Browse repository at this point
Copy the full SHA a66e511View commit details -
Configuration menu - View commit details
-
Copy full SHA for 507332d - Browse repository at this point
Copy the full SHA 507332dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0696901 - Browse repository at this point
Copy the full SHA 0696901View commit details -
Configuration menu - View commit details
-
Copy full SHA for 574877b - Browse repository at this point
Copy the full SHA 574877bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b397e2d - Browse repository at this point
Copy the full SHA b397e2dView commit details -
Use
get_or_try_init
for the global object test, to only root the ob……ject when needed
Configuration menu - View commit details
-
Copy full SHA for bc7d09e - Browse repository at this point
Copy the full SHA bc7d09eView commit details
Commits on Jun 3, 2022
-
Rename
Global
toLocal
and add top-level API docs for the `neon::……instance` module.
Configuration menu - View commit details
-
Copy full SHA for 3a0c041 - Browse repository at this point
Copy the full SHA 3a0c041View commit details
Commits on Jun 8, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3338877 - Browse repository at this point
Copy the full SHA 3338877View commit details -
Configuration menu - View commit details
-
Copy full SHA for 42eec50 - Browse repository at this point
Copy the full SHA 42eec50View commit details -
Configuration menu - View commit details
-
Copy full SHA for 85d99f5 - Browse repository at this point
Copy the full SHA 85d99f5View commit details
Commits on Jun 9, 2022
-
Addresses some of @kjvalencik's review suggestions:
- Eliminate `get_or_init` and rename `get_or_init_with` to `get_or_init` - Add `# Panic` section to doc comment
Configuration menu - View commit details
-
Copy full SHA for c906fbc - Browse repository at this point
Copy the full SHA c906fbcView commit details -
Co-authored-by: K.J. Valencik <kjvalencik@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 0f57620 - Browse repository at this point
Copy the full SHA 0f57620View commit details -
Idiomatic Rust variable name in doc example
Co-authored-by: K.J. Valencik <kjvalencik@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 14a2fe4 - Browse repository at this point
Copy the full SHA 14a2fe4View commit details -
Link to
neon::main
docs in doc commentCo-authored-by: K.J. Valencik <kjvalencik@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 019c2d3 - Browse repository at this point
Copy the full SHA 019c2d3View commit details -
Clarifying doc text about cross-thread sharing
Co-authored-by: K.J. Valencik <kjvalencik@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 58f80b3 - Browse repository at this point
Copy the full SHA 58f80b3View commit details -
Co-authored-by: K.J. Valencik <kjvalencik@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f3cc0ab - Browse repository at this point
Copy the full SHA f3cc0abView commit details -
- Add addon lifecycle diagram - Add panics notes to `Root::{into_inner, to_inner}` - Replace "immutable" with "thread-safe" in list of safe cases
Configuration menu - View commit details
-
Copy full SHA for 2005e61 - Browse repository at this point
Copy the full SHA 2005e61View commit details -
Configuration menu - View commit details
-
Copy full SHA for d50ca63 - Browse repository at this point
Copy the full SHA d50ca63View commit details -
Configuration menu - View commit details
-
Copy full SHA for ece0c02 - Browse repository at this point
Copy the full SHA ece0c02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 310cb5b - Browse repository at this point
Copy the full SHA 310cb5bView commit details