Go to the documentation of this file.
44 #ifndef CGU_ASYNC_RESULT_H
45 #define CGU_ASYNC_RESULT_H
274 while (!done) cond.
wait(mutex);
Definition: application.h:45
int broadcast()
Definition: mutex.h:451
T get() const
Definition: async_result.h:272
A wrapper class for pthread condition variables.
Definition: mutex.h:424
bool set_error(int err=-1)
Definition: async_result.h:301
A thread-safe asynchronous result class.
Definition: async_result.h:164
int wait(Mutex &mutex)
Definition: mutex.h:476
AsyncResult()
Definition: async_result.h:194
bool set(const T &val)
Definition: async_result.h:222
int get_error() const
Definition: async_result.h:320
~AsyncResult()
Definition: async_result.h:196
A scoped locking class for exception safe Mutex locking.
Definition: mutex.h:192
#define CGU_GLIB_MEMORY_SLICES_FUNCS
Definition: cgu_config.h:84
A class enabling the cancellation state of a thread to be controlled.
Definition: thread.h:571
Provides wrapper classes for pthread mutexes and condition variables, and scoped locking classes for ...
bool is_done() const
Definition: async_result.h:333
A wrapper class for pthread mutexes.
Definition: mutex.h:109