~ubuntu-branches/ubuntu/precise/zeromq/precise

« back to all changes in this revision

Viewing changes to doc/zmq.html

  • Committer: Bazaar Package Importer
  • Author(s): Martin Lucina
  • Date: 2011-05-13 12:43:09 UTC
  • mfrom: (7.2.1 sid)
  • Revision ID: james.westby@ubuntu.com-20110513124309-m3gdt964ga67rcwu
Tags: 2.1.7-1
* New upstream version. (closes: #619374)
* --with-system-pgm is now used instead of the embedded OpenPGM library. 
* Added Debian watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
620
620
</dl></div>
621
621
<h4 id="_thread_safety">Thread safety</h4>
622
622
<div class="paragraph"><p>A ØMQ <em>context</em> is thread safe and may be shared among as many application
623
 
threads as necessary, without any additional locking required on the part of the
624
 
caller.  Each ØMQ socket belonging to a particular <em>context</em> may only be used
625
 
by <strong>the thread that created it</strong> using <em>zmq_socket()</em>.</p></div>
 
623
threads as necessary, without any additional locking required on the part of
 
624
the caller.</p></div>
 
625
<div class="paragraph"><p>Individual ØMQ <em>sockets</em> are <em>not</em> thread safe except in the case where full
 
626
memory barriers are issued when migrating a socket from one thread to another.
 
627
In practice this means applications can create a socket in one thread with
 
628
<em>zmq_socket()</em> and then pass it to a <em>newly created</em> thread as part of thread
 
629
initialization, for example via a structure passed as an argument to
 
630
<em>pthread_create()</em>.</p></div>
626
631
<h4 id="_multiple_contexts">Multiple contexts</h4>
627
632
<div class="paragraph"><p>Multiple <em>contexts</em> may coexist within a single application. Thus, an
628
633
application can use ØMQ directly and at the same time make use of any number of
766
771
</dd>
767
772
</dl></div>
768
773
<h3 id="_devices">Devices</h3><div style="clear:left"></div>
769
 
<div class="paragraph"><p>Apart from the ØMQ library the ØMQ distribution includes <em>devices</em> which are
770
 
building blocks intended to serve as intermediate nodes in complex messaging
771
 
topologies.</p></div>
772
 
<div class="paragraph"><p>The following devices are provided:</p></div>
773
 
<div class="dlist"><dl>
774
 
<dt class="hdlist1">
775
 
Forwarder device for request-response messaging
776
 
</dt>
777
 
<dd>
778
 
<p>
779
 
    <a href="zmq_queue.html">zmq_queue(1)</a>
780
 
</p>
781
 
</dd>
782
 
<dt class="hdlist1">
783
 
Forwarder device for publish-subscribe messaging
784
 
</dt>
785
 
<dd>
786
 
<p>
787
 
    <a href="zmq_forwarder.html">zmq_forwarder(1)</a>
788
 
</p>
789
 
</dd>
790
 
<dt class="hdlist1">
791
 
Streamer device for parallelized pipeline messaging
792
 
</dt>
793
 
<dd>
794
 
<p>
795
 
    <a href="zmq_streamer.html">zmq_streamer(1)</a>
796
 
</p>
797
 
</dd>
798
 
</dl></div>
 
774
<div class="paragraph"><p>ØMQ provides <em>devices</em>, which are building blocks that act as intermediate
 
775
nodes in complex messaging topologies. Devices can act as brokers that other
 
776
nodes connect to, proxies that connect through to other nodes, or any mix of
 
777
these two models.</p></div>
 
778
<div class="paragraph"><p>You can start a device in an application thread, see <a href="zmq_device.html">zmq_device(3)</a>.</p></div>
799
779
</div>
800
780
<h2 id="_error_handling">ERROR HANDLING</h2>
801
781
<div class="sectionbody">
840
820
</div>
841
821
<h2 id="_authors">AUTHORS</h2>
842
822
<div class="sectionbody">
843
 
<div class="paragraph"><p>The ØMQ documentation was written by Martin Sustrik &lt;<a href="mailto:sustrik@250bpm.com">sustrik@250bpm.com</a>&gt; and
 
823
<div class="paragraph"><p>This ØMQ manual page was written by Martin Sustrik &lt;<a href="mailto:sustrik@250bpm.com">sustrik@250bpm.com</a>&gt; and
844
824
Martin Lucina &lt;<a href="mailto:mato@kotelna.sk">mato@kotelna.sk</a>&gt;.</p></div>
845
825
</div>
846
826
<h2 id="_resources">RESOURCES</h2>
858
838
<div id="footnotes"><hr /></div>
859
839
<div id="footer">
860
840
<div id="footer-text">
861
 
ØMQ 2.0.10<br />
862
 
Last updated 2010-10-15 19:26:37 CEST
 
841
ØMQ 2.1.4<br />
 
842
Last updated 2011-03-13 17:59:17 CEST
863
843
</div>
864
844
</div>
865
845
</body>