diff options
author | Zeev Suraski <zeev@php.net> | 2001-07-28 11:36:37 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-07-28 11:36:37 +0000 |
commit | d87cc976e1156b839fc6d4aa6b473a126802b8e3 (patch) | |
tree | 8acb068dd7458e1c8df3a7d8ecb87d065990fdb1 /main/php_globals.h | |
parent | b4f3b9d3ce9f55cf040fb5aa8f201c64646cab43 (diff) | |
download | php-git-d87cc976e1156b839fc6d4aa6b473a126802b8e3.tar.gz |
Redesigned thread safety mechanism - nua nua
Diffstat (limited to 'main/php_globals.h')
-rw-r--r-- | main/php_globals.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/main/php_globals.h b/main/php_globals.h index bdcf3acc60..0499e8c133 100644 --- a/main/php_globals.h +++ b/main/php_globals.h @@ -25,20 +25,10 @@ typedef struct _php_core_globals php_core_globals; #ifdef ZTS -# define PLS_D php_core_globals *core_globals -# define PLS_DC , PLS_D -# define PLS_C core_globals -# define PLS_CC , PLS_C -# define PG(v) (core_globals->v) -# define PLS_FETCH() php_core_globals *core_globals = ts_resource(core_globals_id) +# define PG(v) TSRMG(core_globals_id, php_core_globals *, v) extern PHPAPI int core_globals_id; #else -# define PLS_D -# define PLS_DC -# define PLS_C -# define PLS_CC # define PG(v) (core_globals.v) -# define PLS_FETCH() extern ZEND_API struct _php_core_globals core_globals; #endif |