18 #ifndef LUNCHBOX_REQUESTHANDLER_H
19 #define LUNCHBOX_REQUESTHANDLER_H
22 #include <lunchbox/thread.h>
29 namespace detail {
class RequestHandler; }
89 LUNCHBOX_API
bool waitRequest(
const uint32_t requestID,
void*& result,
90 const uint32_t timeout = LB_TIMEOUT_INDEFINITE );
93 LUNCHBOX_API
bool waitRequest(
const uint32_t requestID, uint32_t& result,
94 const uint32_t timeout = LB_TIMEOUT_INDEFINITE );
96 LUNCHBOX_API
bool waitRequest(
const uint32_t requestID,
bool& result,
97 const uint32_t timeout = LB_TIMEOUT_INDEFINITE );
100 const uint32_t timeout = LB_TIMEOUT_INDEFINITE );
102 LUNCHBOX_API
bool waitRequest(
const uint32_t requestID );
131 LUNCHBOX_API
void serveRequest(
const uint32_t requestID,
134 LUNCHBOX_API
void serveRequest(
const uint32_t requestID,
137 LUNCHBOX_API
void serveRequest(
const uint32_t requestID,
bool result );
139 LUNCHBOX_API
void serveRequest(
const uint32_t requestID,
148 detail::RequestHandler*
const _impl;
149 friend LUNCHBOX_API std::ostream& operator << ( std::ostream&,
150 const RequestHandler& );
151 LB_TS_VAR( _thread );
154 LUNCHBOX_API std::ostream&
operator << ( std::ostream&,
157 #endif //LUNCHBOX_REQUESTHANDLER_H