diff options
author | SVN Migration <svn@php.net> | 2001-10-03 11:35:52 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2001-10-03 11:35:52 +0000 |
commit | 05309823902ed618a60123ac14d1c0d3297d84e5 (patch) | |
tree | 2c1547b4fba646ea1b12b1dca2eae0dd56e5411e /Zend/zend_execute_locks.h | |
parent | 73b5401fc9baccf7d0eceede29e05f2bf0fef2e0 (diff) | |
download | php-git-php4.tar.gz |
This commit was manufactured by cvs2svn to create tag 'php4'.php4
Diffstat (limited to 'Zend/zend_execute_locks.h')
-rw-r--r-- | Zend/zend_execute_locks.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/Zend/zend_execute_locks.h b/Zend/zend_execute_locks.h deleted file mode 100644 index 88381268a2..0000000000 --- a/Zend/zend_execute_locks.h +++ /dev/null @@ -1,32 +0,0 @@ -#ifndef ZEND_EXECUTE_LOCKS_H -#define ZEND_EXECUTE_LOCKS_H - -#define PZVAL_LOCK(z) zend_pzval_lock_func(z) - -static inline void zend_pzval_lock_func(zval *z) -{ - z->refcount++; -} - -#define PZVAL_UNLOCK(z) zend_pzval_unlock_func(z TSRMLS_CC) - -static inline void zend_pzval_unlock_func(zval *z TSRMLS_DC) -{ - z->refcount--; - if (!z->refcount) { - z->refcount = 1; - z->is_ref = 0; - EG(garbage)[EG(garbage_ptr)++] = z; - } -} - -static inline void zend_clean_garbage(TSRMLS_D) -{ - while (EG(garbage_ptr)) { - zval_ptr_dtor(&EG(garbage)[--EG(garbage_ptr)]); - } -} - -#define SELECTIVE_PZVAL_LOCK(pzv, pzn) if (!((pzn)->u.EA.type & EXT_TYPE_UNUSED)) { PZVAL_LOCK(pzv); } - -#endif /* ZEND_EXECUTE_LOCKS_H */ |