Ignore:
Timestamp:
2019-07-02T14:19:24Z (5 years ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4dfb259
Parents:
72786f38
Message:

cpp: make sure exceptions are stored when we set value at thread exit too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/cpp/include/__bits/thread/packaged_task.hpp

    r72786f38 r5ab9df4  
    191191                {
    192192                    state_->set_value(invoke(func_, args...), false);
     193                    aux::set_state_value_at_thread_exit(this->state_);
    193194                }
    194195                catch(const exception& __exception)
    195196                {
    196197                    state_->set_exception(make_exception_ptr(__exception), false);
    197                 }
    198 
    199                 aux::set_state_value_at_thread_exit(state_);
     198                    aux::set_state_exception_at_thread_exit(this->state_);
     199                }
    200200            }
    201201
Note: See TracChangeset for help on using the changeset viewer.