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

cpp: moved all the at_exit logic to two functions which are to be implemented later to avoid TODO duplication throughout the code

File:
1 edited

Legend:

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

    rd3ba97d r72786f38  
    106106
    107107                    state_->set_exception_ptr(ptr, false);
    108                     // TODO: Mark it as 'has_exception' when thread terminates.
     108                    aux::set_state_exception_at_thread_exit(state_);
    109109                }
    110110
     
    226226
    227227                this->state_->set_value(val, false);
    228                 // TODO: schedule it to be set as ready when thread exits
     228                aux::set_state_value_at_thread_exit(state_);
    229229            }
    230230
     
    241241
    242242                this->state_->set_value(forward<R>(val), false);
    243                 // TODO: schedule it to be set as ready when thread exits
     243                aux::set_state_value_at_thread_exit(state_);
    244244            }
    245245    };
     
    312312
    313313                this->state_->set_value(&val, false);
    314                 // TODO: schedule it to be set as ready when thread exits
     314                aux::set_state_value_at_thread_exit(state_);
    315315            }
    316316    };
Note: See TracChangeset for help on using the changeset viewer.