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

Changeset 9eea0b7 in mainline


Ignore:
Timestamp:
2019-06-27T16:02:12Z (16 months ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
master
Children:
046b66e
Parents:
04c0fc5
Message:

cpp: fix the reference version set_value

File:
1 edited

Legend:

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

    r04c0fc5 r9eea0b7  
    125125                void set_value(const R& val, bool set)
    126126                {
     127                    aux::threading::mutex::lock(mutex_);
    127128                    value_ = val;
    128129                    value_set_ = set;
     130                    aux::threading::mutex::unlock(mutex_);
     131
     132                    aux::threading::condvar::broadcast(condvar_);
    129133                }
    130134
Note: See TracChangeset for help on using the changeset viewer.