<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.sync.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'class.syncevent.php',
    1 => 'SyncEvent',
    2 => 'The SyncEvent class',
  ),
  'up' => 
  array (
    0 => 'book.sync.php',
    1 => 'Sync',
  ),
  'prev' => 
  array (
    0 => 'syncsemaphore.unlock.php',
    1 => 'SyncSemaphore::unlock',
  ),
  'next' => 
  array (
    0 => 'syncevent.construct.php',
    1 => 'SyncEvent::__construct',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/sync/syncevent.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/class.syncevent.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="class.syncevent" class="reference">

 <h1 class="title">The SyncEvent class</h1>
 

 <div class="partintro"><p class="verinfo">(PECL sync &gt;= 1.0.0)</p>


  <div class="section" id="syncevent.intro">
   <h2 class="title">Einführung</h2>
   <p class="simpara">
    A cross-platform, native implementation of named and unnamed event objects.
    Both automatic and manual event objects are supported.
   </p>
   <p class="simpara">
    An event object waits, without polling, for the object to be fired/set.
    One instance waits on the event object while another instance fires/sets
    the event. Event objects are useful wherever a long-running process would
    otherwise poll a resource (e.g. checking to see if uploaded data needs to
    be processed).
   </p>
  </div>


  <div class="section" id="syncevent.synopsis">
   <h2 class="title">Klassenbeschreibung</h2>


   <div class="classsynopsis">
    <span class="ooclass"><strong class="classname"></strong></span>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">class</span> <strong class="classname">SyncEvent</strong>
     </span>
     {</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methoden */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="syncevent.construct.php" class="methodname">__construct</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$name</code><span class="initializer"> = ?</span></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$manual</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></span></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$prefire</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong></span></span>)</div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="syncevent.fire.php" class="methodname">fire</a></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="syncevent.reset.php" class="methodname">reset</a></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="syncevent.wait.php" class="methodname">wait</a></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$wait</code><span class="initializer"> = -1</span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

   }</div>


  </div>

 </div>

 




















<h2>Inhaltsverzeichnis</h2><ul class="chunklist chunklist_reference"><li><a href="syncevent.construct.php">SyncEvent::__construct</a> — Constructs a new SyncEvent object</li><li><a href="syncevent.fire.php">SyncEvent::fire</a> — Fires/sets the event</li><li><a href="syncevent.reset.php">SyncEvent::reset</a> — Resets a manual event</li><li><a href="syncevent.wait.php">SyncEvent::wait</a> — Waits for the event to be fired/set</li></ul>
</div>
<?php manual_footer($setup); ?>