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

coroutines shouldnt be passed mutable values #27

Open
ammarbinfaisal opened this issue May 30, 2023 · 1 comment
Open

coroutines shouldnt be passed mutable values #27

ammarbinfaisal opened this issue May 30, 2023 · 1 comment

Comments

@ammarbinfaisal
Copy link
Owner

after #26 is done

@ammarbinfaisal
Copy link
Owner Author

ammarbinfaisal commented Aug 18, 2023

this was to prevent data races but if we get mutex #47 implemented then do we really need this?

struct LinkedList<T> {
    data: T,
    next: Option<LinkedList<T>>,
    mu: mutex,
}

enum Option<T> {
    Some(T),
    None    
}

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

No branches or pull requests

1 participant