Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22730 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19256 invoked by uid 1010); 13 Apr 2006 08:30:23 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 19241 invoked from network); 13 Apr 2006 08:30:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Apr 2006 08:30:23 -0000 X-Host-Fingerprint: 212.227.48.61 mayflowerholding.com Linux 2.5 (sometimes 2.4) (4) Received: from ([212.227.48.61:53595] helo=s15175637.rootmaster.info) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id CE/49-19715-D1C0E344 for ; Thu, 13 Apr 2006 04:30:21 -0400 Received: (qmail 8691 invoked by uid 2520); 13 Apr 2006 10:30:17 +0200 Received: from 84.153.109.235 by s15175637 (envelope-from , uid 2020) with qmail-scanner-1.25st (uvscan: v4.4.00/v4736. spamassassin: 3.0.3. perlscan: 1.25st. Clear:RC:0(84.153.109.235):SA:0(-0.5/7.0):. Processed in 3.477598 secs); 13 Apr 2006 08:30:17 -0000 X-Spam-Status: No, hits=-0.5 required=7.0 Received: from p54996deb.dip.t-dialin.net (HELO ?192.168.0.106?) (84.153.109.235) by mayflowerholding.com with (DHE-RSA-AES256-SHA encrypted) SMTP; 13 Apr 2006 10:30:14 +0200 To: internals@lists.php.net Date: Thu, 13 Apr 2006 10:29:43 +0200 User-Agent: KMail/1.9.1 Cc: Kamesh Jayachandran , ceo@l-i-e.com References: <46894.67.184.121.112.1144914867.squirrel@www.l-i-e.com> <443E09B0.3070902@fastmail.fm> In-Reply-To: <443E09B0.3070902@fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200604131029.44095.johannes@php.net> Subject: Re: [PHP-DEV] tsrm_ls From: johannes@php.net (Johannes Schlueter) 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...)