summaryrefslogtreecommitdiff
path: root/Zend/zend_execute_locks.h
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2002-10-12 14:20:33 +0000
committerSVN Migration <svn@php.net>2002-10-12 14:20:33 +0000
commitfaa91c556864bf06779a0bb05bbf97ad72a034fb (patch)
treef2b77f482eb07af38f786e126f967818f1d669c5 /Zend/zend_execute_locks.h
parentc93ff0fa6ffa231d4dc97d0766649f6f8038f32f (diff)
downloadphp-git-RELEASE_1_0b1.tar.gz
This commit was manufactured by cvs2svn to create tag 'RELEASE_1_0b1'.RELEASE_1_0b1
Diffstat (limited to 'Zend/zend_execute_locks.h')
-rw-r--r--Zend/zend_execute_locks.h32
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 */