Re: tsrm_ls
| From: | Johannes Schlueter | Date: | Thu, 13 Apr 2006 08:29:43 +0000 |
| Subject: | Re: tsrm_ls | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-22730@lists.php.net to get a copy of this message | ||
Hi,
TSRM is the thread-safe resource manager. you can find it at the TSRM CVS
module which should be at php-src/TSRM at your checkout.
TSRM is a mechanism to hold thread safeglobal variables in an threaded
environment. See articles about extension writing or the releavant books for
more.
A few pointers for material:
http://www.zend.com/php/internals/extension-writing1.php#Heading9
Schlossnagle, George: Advanced PHP Programming (ISBN: 0672325616)
Golemon, Sara: Extending and Embedding PHP (ISBN: 067232704X)
btw. LS means "local storage", not list.
johannes
On Thursday 13 April 2006 10:20, Kamesh Jayachandran wrote:
> Hi Richard,
> I think LS=LIST
> CC=Comma(,) Call (, tsrm_ls)
> DC = Comma(,) Declare(, void ***tsrm_ls)
>
> With regards
> Kamesh Jayachandran
>
> Richard Lynch wrote:
> > I'm trying to grok PHP Source, and I suspect I've missed some
> > "Beginner" guide somewhere.
> >
> > I'm looking at the TSRM*_* data types in the header files, and have
> > backtracked as far as 'tsrm_ls' and then... I'm not finding a place
> > where that is defined.
> >
> > I've grepped php-src for it, and only see it used, not defined.
> >
> > I also grepped /usr/include and /usr/local/include, thinking maybe
> > it's a standard OS thing.
> >
> > I know TSRM is thread-safe-resource-manager, but the LS_DC LS_CC etc
> > system isn't getting into my brain... L for Long? S for string?
> >
> > What am I missing?
> >
> > TIA! (Hoping to do something useful someday...)