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

concurrency: update shared resource examples #196

Merged
merged 3 commits into from
Jul 11, 2019
Merged

concurrency: update shared resource examples #196

merged 3 commits into from
Jul 11, 2019

Commits on Jul 9, 2019

  1. concurrency: example of mutable reference to shared resource

    Add example of mutable reference to shared resource
    using borrow_mut and deref_mut.
    
    Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
    geomatsi committed Jul 9, 2019
    Configuration menu
    Copy the full SHA
    a0f62dd View commit details
    Browse the repository at this point in the history
  2. concurrency: add note about const-fn feature in cortex-m crate

    At the moment cortex-m crate hides const versions of some functions,
    including Mutex::new(), behind the const-fn feature. So this feature
    needs to be enabled to cortex-m in Cargo.toml for shared resource
    examples.
    
    Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
    geomatsi committed Jul 9, 2019
    Configuration menu
    Copy the full SHA
    18557e7 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2019

  1. fixup: address review comments

    Address review comments by @andre-richter: proof-reading
    
    Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
    geomatsi committed Jul 11, 2019
    Configuration menu
    Copy the full SHA
    314a00b View commit details
    Browse the repository at this point in the history