TSRM coverage question

From: Date: Tue, 18 Sep 2001 23:21:46 +0000
Subject: TSRM coverage question
Groups: php.dev 
Request: Send a blank email to php-dev+get-66211@lists.php.net to get a copy of this message
suppose i have a function which returns a pointer to a variable in thread local storage foo_t *get_global_foo() { TSRMLS_FETCH(); return (foo_t *)BAR_G(foo); } void fubar() { foo_t *foo = get_global_foo(); bar( foo ); /* possible multi-thread access */ } is fubar then thread safe, or is TSRMLS_FETCH() (or TSRMLS_C etc) needed in each function needing serialized access to TLS data ? lo-tek

« previous php.dev (#66211) next »