Date: 09/18/01
- Next message: Sterling Hughes: "Re: [PHP-DEV] TSRM coverage question"
- Previous message: Matthias Wimmer: "[PHP-DEV] gethostbyaddr, IPv6 mapped IPv4 and native IPv6 addresses"
- Next in thread: Sterling Hughes: "Re: [PHP-DEV] TSRM coverage question"
- Reply: Sterling Hughes: "Re: [PHP-DEV] TSRM coverage question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Sterling Hughes: "Re: [PHP-DEV] TSRM coverage question"
- Previous message: Matthias Wimmer: "[PHP-DEV] gethostbyaddr, IPv6 mapped IPv4 and native IPv6 addresses"
- Next in thread: Sterling Hughes: "Re: [PHP-DEV] TSRM coverage question"
- Reply: Sterling Hughes: "Re: [PHP-DEV] TSRM coverage question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

