Changeset 4dfb259 in mainline
- Timestamp:
- 2019-07-03T10:00:07Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b96e87e
- Parents:
- 5ab9df4
- Location:
- uspace/lib/cpp/include/__bits/thread
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/__bits/thread/packaged_task.hpp
r5ab9df4 r4dfb259 177 177 } 178 178 179 void make_ready_at_thread_exit(Args... )179 void make_ready_at_thread_exit(Args... args) 180 180 { 181 181 if (!state_) -
uspace/lib/cpp/include/__bits/thread/promise.hpp
r5ab9df4 r4dfb259 227 227 try 228 228 { 229 state_->set_value(invoke(func_, args...), false);229 this->state_->set_value(val, false); 230 230 aux::set_state_value_at_thread_exit(this->state_); 231 231 } 232 232 catch(const exception& __exception) 233 233 { 234 state_->set_exception(make_exception_ptr(__exception), false);234 this->state_->set_exception(make_exception_ptr(__exception), false); 235 235 aux::set_state_exception_at_thread_exit(this->state_); 236 236 } … … 250 250 try 251 251 { 252 state_->set_value(invoke(func_, args...), false);252 this->state_->set_value(forward(val), false); 253 253 aux::set_state_value_at_thread_exit(this->state_); 254 254 } 255 255 catch(const exception& __exception) 256 256 { 257 state_->set_exception(make_exception_ptr(__exception), false);257 this->state_->set_exception(make_exception_ptr(__exception), false); 258 258 aux::set_state_exception_at_thread_exit(this->state_); 259 259 } … … 329 329 try 330 330 { 331 state_->set_value(invoke(func_, args...), false);331 this->state_->set_value(&val, false); 332 332 aux::set_state_value_at_thread_exit(this->state_); 333 333 } 334 334 catch(const exception& __exception) 335 335 { 336 state_->set_exception(make_exception_ptr(__exception), false);336 this->state_->set_exception(make_exception_ptr(__exception), false); 337 337 aux::set_state_exception_at_thread_exit(this->state_); 338 338 }
Note:
See TracChangeset
for help on using the changeset viewer.