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 new SendWeakRef type #359

merged 4 commits into from Jul 25, 2018


None yet
2 participants

sdroege commented Jul 25, 2018

See #310 (comment) for discussion

sdroege added some commits Jul 25, 2018

Add new SendWeakRef type
This allows sending weak references to arbitrary threads, to clone and
drop them from arbitrary threads but will panic when trying to upgrade
it from a different thread than where it was created on.

It works for all object types, while sending normal WeakRefs to
different threads only works if the object itself is Sync and Send.

See #310 (comment)

This comment has been minimized.

Show comment
Hide comment

GuillaumeGomez commented Jul 25, 2018


@GuillaumeGomez GuillaumeGomez merged commit 805b6a8 into gtk-rs:master Jul 25, 2018

1 of 2 checks passed

continuous-integration/travis-ci/pr The Travis CI build failed
continuous-integration/appveyor/pr AppVeyor build succeeded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment