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

[Proposal] Add APIs for deferred set_value/exception #116

Closed
jamboree opened this Issue Feb 27, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@jamboree

jamboree commented Feb 27, 2017

As discussed on the mailing list:

http://lists.boost.org/boost-users/2017/02/87211.php

The proposal is to add these functions:

  • promise::set_value_deferred
  • promise::set_exception_deferred
  • promise::notify_deferred

It's for finer-grain control. The existing set_xxx_at_thread_exit can thus be implemented in terms of these functions (where at thread-exit, it calls notify_deferred automatically).
This allows using the shared-state's storage w/o additional space overhead on the user side.

@viboes viboes added the enhancement label Mar 1, 2017

@viboes viboes added feature and removed enhancement labels Aug 23, 2017

@viboes

This comment has been minimized.

Show comment
Hide comment
@viboes

viboes Sep 18, 2017

Collaborator

Here it is a PR #150.

Please, could you check if this is what you was expecting?

Collaborator

viboes commented Sep 18, 2017

Here it is a PR #150.

Please, could you check if this is what you was expecting?

@jamboree

This comment has been minimized.

Show comment
Hide comment
@jamboree

jamboree Sep 19, 2017

Yes, looks what I expected. Thanks!

jamboree commented Sep 19, 2017

Yes, looks what I expected. Thanks!

@viboes viboes added the boost-1.66 label Sep 19, 2017

@viboes viboes added the fixed label Sep 28, 2017

@viboes viboes closed this Sep 28, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment