44 #ifndef CGU_ASYNC_RESULT_H
45 #define CGU_ASYNC_RESULT_H
269 res = std::move(val);
325 while (!done) cond.
wait(mutex);
381 while (!done) cond.
wait(mutex);
383 return std::move(res);
AsyncResult()
Definition: async_result.h:190
A wrapper class for pthread condition variables.
Definition: mutex.h:449
AsyncResult & operator=(const AsyncResult &)=delete
T move_get()
Definition: async_result.h:379
A class enabling the cancellation state of a thread to be controlled.
Definition: thread.h:723
A scoped locking class for exception safe Mutex locking.
Definition: mutex.h:207
A thread-safe asynchronous result class.
Definition: async_result.h:165
bool set_error(int err=-1)
Definition: async_result.h:408
A wrapper class for pthread mutexes.
Definition: mutex.h:117
Provides wrapper classes for pthread mutexes and condition variables, and scoped locking classes for ...
Definition: application.h:44
int broadcast() noexcept
Definition: mutex.h:483
~AsyncResult()
Definition: async_result.h:192
int get_error() const
Definition: async_result.h:427
bool is_done() const
Definition: async_result.h:440
bool set(T &&val)
Definition: async_result.h:266
#define CGU_GLIB_MEMORY_SLICES_FUNCS
Definition: cgu_config.h:84
bool set(const T &val)
Definition: async_result.h:235
int wait(Mutex &mutex)
Definition: mutex.h:513