00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef APR_THREAD_COND_H
00018 #define APR_THREAD_COND_H
00019
00025 #include "apr.h"
00026 #include "apr_pools.h"
00027 #include "apr_errno.h"
00028 #include "apr_time.h"
00029 #include "apr_thread_mutex.h"
00030
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034
00035 #if APR_HAS_THREADS || defined(DOXYGEN)
00036
00044 typedef struct apr_thread_cond_t apr_thread_cond_t;
00045
00053 APR_DECLARE(apr_status_t) apr_thread_cond_create(apr_thread_cond_t **cond,
00054 apr_pool_t *pool);
00055
00068 APR_DECLARE(apr_status_t) apr_thread_cond_wait(apr_thread_cond_t *cond,
00069 apr_thread_mutex_t *mutex);
00070
00087 APR_DECLARE(apr_status_t) apr_thread_cond_timedwait(apr_thread_cond_t *cond,
00088 apr_thread_mutex_t *mutex,
00089 apr_interval_time_t timeout);
00090
00098 APR_DECLARE(apr_status_t) apr_thread_cond_signal(apr_thread_cond_t *cond);
00099
00106 APR_DECLARE(apr_status_t) apr_thread_cond_broadcast(apr_thread_cond_t *cond);
00107
00112 APR_DECLARE(apr_status_t) apr_thread_cond_destroy(apr_thread_cond_t *cond);
00113
00118 APR_POOL_DECLARE_ACCESSOR(thread_cond);
00119
00120 #endif
00121
00124 #ifdef __cplusplus
00125 }
00126 #endif
00127
00128 #endif