mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334136 c90b9560-bf6c-de11-be94-00142212c4b1
65 lines
2 KiB
XML
65 lines
2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
|
|
<book xml:id="book.sync" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<title>Sync</title>
|
|
<titleabbrev>Sync</titleabbrev>
|
|
|
|
<preface xml:id="intro.sync">
|
|
&reftitle.intro;
|
|
<para>
|
|
The 'sync' extension introduces cross-platform synchonization objects into PHP.
|
|
Named and unnamed Mutex, Semaphore, Event, and Reader-Writer objects provide
|
|
OS-level synchronization on both POSIX (e.g. Linux) and Windows platforms.
|
|
</para>
|
|
<para>
|
|
Automatic cleanup of acquired synchronization objects takes place during extension
|
|
teardown. This means that if PHP prematurely terminates a script (e.g. script
|
|
execution time is exceeded), objects will not be left in an unknown state. The
|
|
only exception to this is if PHP itself crashes (e.g. an internal buffer overflow).
|
|
</para>
|
|
<para>
|
|
Unnamed synchronization objects don't have a lot of use outside of a multithreaded
|
|
scenario. Unnamed objects are more useful in conjunction with the pthreads PECL
|
|
extension.
|
|
</para>
|
|
<note>
|
|
<para>
|
|
Named objects require additional care to be used on all systems.
|
|
If an object is instantiated with a specific set of parameters, it must always
|
|
be instantiated with those parameters or the object will probably end up in an
|
|
inconsistent state until the next reboot or a system administrator cleans up
|
|
the mess.
|
|
</para>
|
|
</note>
|
|
</preface>
|
|
|
|
&reference.sync.setup;
|
|
&reference.sync.constants;
|
|
&reference.sync.syncmutex;
|
|
&reference.sync.syncsemaphore;
|
|
&reference.sync.syncevent;
|
|
&reference.sync.syncreaderwriter;
|
|
|
|
</book>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|