Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 3a29607 in mainline


Ignore:
Timestamp:
2019-06-30T15:43:41Z (16 months ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
master
Children:
bd6ad4b
Parents:
6e97265
Message:

cpp: future::get does not release the state

File:
1 edited

Legend:

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

    r6e97265 r3a29607  
    189189                if (this->state_->has_exception())
    190190                    this->state_->throw_stored_exception();
    191                 auto res = std::move(this->state_->get());
    192 
    193                 this->release_state_();
    194 
    195                 return res;
     191
     192                return this->state_->get();
    196193            }
    197194    };
Note: See TracChangeset for help on using the changeset viewer.