1 #ifndef CARMA_UTIL_WORKRESULT_H
2 #define CARMA_UTIL_WORKRESULT_H
39 LATE_DROPPED_POST_STATE,
40 NO_WAITERS_DROPPED_POST_STATE
53 ::std::string getId( )
const;
55 WorkResult addKey( const ::std::string & key );
57 ::std::map< ::std::string, WorkResult >
58 addKeys( const ::std::set< ::std::string > &
keys );
60 void removeKeys( const ::std::set< ::std::string > & keys );
62 void waitForAll(
unsigned long milliseconds,
64 PostState postStateAfterTimeout )
const;
66 void waitForAll(
const struct ::timeval & absTimeout,
68 PostState postStateAfterTimeout )
const;
70 void waitForAll(
const struct ::timespec & absTimeout,
72 PostState postStateAfterTimeout )
const;
76 void verifyKeys( const ::std::set< ::std::string > & keys )
const;
100 void postAbnormal( const ::std::string & errorText );
104 const ::std::string & key );
106 WorkResultSet::Impl * setImpl_;
116 carma::util::WorkResultSet::swap( WorkResultSet & rhs )
118 ::std::swap( impl_, rhs.impl_ );
123 carma::util::WorkResultSet::operator=(
const WorkResultSet & rhs )
125 WorkResultSet temp( rhs );
134 carma::util::WorkResult::swap( WorkResult & rhs )
136 ::std::swap( setImpl_, rhs.setImpl_ );
137 key_.swap( rhs.key_ );
142 carma::util::WorkResult::operator=(
const WorkResult & rhs )
144 WorkResult temp( rhs );
An abstract collection of the results of servicing a collection of work requests. ...
Abstract result of servicing a work request.
::std::set< K > keys(const ::std::map< K, V > &in)
Return the keys of a map as a set.