mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
clarity
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330056 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
c4be02cd14
commit
5f03a641c8
1 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@
|
|||
</simpara>
|
||||
|
||||
<simpara>
|
||||
If a function requires a pointer to TSRM, it is declared with the macro TSRMLS_D or TSRMLS_DC in it's prototype, wihch translates to "thread safe local storage only" and "thread safe local storage prefixed with a comma" respectively. Many macros within the engine reference TSRM, so it is a good idea to declare most things to accept TSRM, such that if they need to call upon TSRM they do not have to fetch a pointer during execution, whenever PHP is built in Thread Safe mode TSRM is available by default.
|
||||
If a function requires a pointer to TSRM, it is declared with the macro TSRMLS_D or TSRMLS_DC in it's prototype, wihch translates to "thread safe local storage only" and "thread safe local storage prefixed with a comma" respectively. Many macros within the engine reference TSRM, so it is a good idea to declare most things to accept TSRM, such that if they need to call upon TSRM they do not have to fetch a pointer during execution.
|
||||
</simpara>
|
||||
|
||||
<simpara>
|
||||
|
@ -43,7 +43,7 @@
|
|||
</note>
|
||||
|
||||
<simpara>
|
||||
The functionality documented hereafter is aimed at advanced use of TSRM. It is not ordinary for extensions to have to interact with TSRM directly, the pecl programmer should use API's above TSRM such as the Module Globals API which used correctly will ensure safety in ZTS mode for you.
|
||||
The functionality documented hereafter is aimed at advanced use of TSRM. It is not ordinary for extensions to have to interact with TSRM directly, the pecl programmer should use API's above TSRM such as the Module Globals API.
|
||||
</simpara>
|
||||
|
||||
<table xml:id="internals2.memory.tsrm.iapis">
|
||||
|
|
Loading…
Reference in a new issue