Skip to content

Conversation

@whentze
Copy link
Contributor

@whentze whentze commented Apr 18, 2019

This PR adds the following APIs to loom::sync::Arc<T>:

  • Arc::ptr_eq
  • Arc::strong_count
  • Default
  • From<T>

It also adds some basic docs (the current docs just say "TODO").

Unresolved questions:

  • Should we add support for weak refcounting?
  • Should we add some tests for this Arc?
  • How do we implement the methods that std uses fences for (try_unwrap etc.)?

Copy link
Member

@seanmonstar seanmonstar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@seanmonstar
Copy link
Member

Hm, seems a CI build got lost, there's nothing for me to "restart" it. Could you force push to trigger CI again?

@whentze
Copy link
Contributor Author

whentze commented Apr 19, 2019

I triggered CI again, but it still gets stuck. I believe this is an instance of travis-ci/#10204, as #12 is stuck at the same check.

@carllerche
Copy link
Member

Fun fun... we should migrate to azure pipelines.

@carllerche
Copy link
Member

I tried restarting travis. If that doesn't work, I will force the merge.

@carllerche carllerche merged commit 981e6f6 into tokio-rs:master Apr 21, 2019
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

Successfully merging this pull request may close these issues.

3 participants