Ignore:
Timestamp:
2019-07-03T16:59:49Z (5 years ago)
Author:
Jaroslav Jindrak <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
46c66f8
Parents:
96fec16
Message:

cpp: write tests for <future> and fix minor bugs they found

File:
1 edited

Legend:

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

    r96fec16 r8e24583  
    9696                }
    9797            }
     98
     99            /**
     100             * Useful for testing as we can check some information
     101             * otherwise unavailable to us without waiting, e.g.
     102             * to check whether the state is ready, its reference
     103             * count etc.
     104             */
     105            aux::shared_state<aux::future_inner_t<R>>* __state() noexcept
     106            {
     107                return this->state_;
     108            }
    98109    };
    99110}
Note: See TracChangeset for help on using the changeset viewer.