diff options
Diffstat (limited to 'include/mutexs.h')
-rw-r--r-- | include/mutexs.h | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/include/mutexs.h b/include/mutexs.h index 0592a886580..9a15064efea 100644 --- a/include/mutexs.h +++ b/include/mutexs.h @@ -55,7 +55,8 @@ # define ZBX_MUTEX_ITSERVICES 8 # define ZBX_MUTEX_VALUECACHE 9 # define ZBX_MUTEX_VMWARE 10 -# define ZBX_MUTEX_COUNT 11 +# define ZBX_MUTEX_SQLITE3 11 +# define ZBX_MUTEX_COUNT 12 # define ZBX_MUTEX_MAX_TRIES 20 /* seconds */ @@ -71,27 +72,4 @@ void __zbx_mutex_lock(const char *filename, int line, ZBX_MUTEX *mutex); void __zbx_mutex_unlock(const char *filename, int line, ZBX_MUTEX *mutex); int zbx_mutex_destroy(ZBX_MUTEX *mutex); -#if defined(HAVE_SQLITE3) - -/*********************************************************/ -/*** PHP Semaphore functions using System V semaphores ***/ -/*********************************************************/ - -#define PHP_MUTEX_OK 1 -#define PHP_MUTEX_ERROR 0 - -typedef struct -{ - int semid; - int count; -} -PHP_MUTEX; - -int php_sem_get(PHP_MUTEX *sem_ptr, const char *path_name); -int php_sem_acquire(PHP_MUTEX *sem_ptr); -int php_sem_release(PHP_MUTEX *sem_ptr); -int php_sem_remove(PHP_MUTEX *sem_ptr); - -#endif /* HAVE_SQLITE3 */ - #endif /* ZABBIX_MUTEXS_H */ |