summaryrefslogtreecommitdiff
path: root/ext/pcntl/php_pcntl.h
diff options
context:
space:
mode:
authorJason Greene <jason@php.net>2001-07-30 19:40:29 +0000
committerJason Greene <jason@php.net>2001-07-30 19:40:29 +0000
commit40c7f095097df14bf55207220c98b2c6cb6f272c (patch)
treef857dcc60944fb621c9510d4595e2bd1ebe84fde /ext/pcntl/php_pcntl.h
parent3b7bc2535abea052548fe7635f2c3ec530af4ae7 (diff)
downloadphp-git-40c7f095097df14bf55207220c98b2c6cb6f272c.tar.gz
Fully implement new thread safe model.
Fix ws.
Diffstat (limited to 'ext/pcntl/php_pcntl.h')
-rw-r--r--ext/pcntl/php_pcntl.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/pcntl/php_pcntl.h b/ext/pcntl/php_pcntl.h
index 347c77f275..7154dcd4de 100644
--- a/ext/pcntl/php_pcntl.h
+++ b/ext/pcntl/php_pcntl.h
@@ -63,13 +63,10 @@ ZEND_BEGIN_MODULE_GLOBALS(pcntl)
int signal_queue_ready;
int processing_signal_queue;
ZEND_END_MODULE_GLOBALS(pcntl)
-
#ifdef ZTS
-#define PCNTL_G(v) (pcntl_globals->v)
-#define PCNTL_LS_FETCH() zend_pcntl_globals *pcntl_globals = ts_resource(pcntl_globals_id)
+# define PCNTL_G(v) TSRMG(pcntl_globals_id, zend_pcntl_globals *, v)
#else
-#define PCNTL_G(v) (pcntl_globals.v)
-#define PCNTL_LS_FETCH()
+# define PCNTL_G(v) (pcntl_globals.v)
#endif
#endif /* PHP_PCNTL_H */