summaryrefslogtreecommitdiff
path: root/doc/zmq_term.txt
diff options
context:
space:
mode:
authorMartin Lucina <mato@kotelna.sk>2010-06-01 22:22:29 +0200
committerMartin Lucina <mato@kotelna.sk>2010-06-01 22:22:29 +0200
commit8ba1d3c8ed32b39bb1133330d496587d96020e7e (patch)
tree392442360ba9316b00c972426e3a2129fcd78832 /doc/zmq_term.txt
parent74a03dfd7dbb762be5d50eca4df214f8825ad44a (diff)
Documentation: zmq_term() and ETERM for 2.0.7
Diffstat (limited to 'doc/zmq_term.txt')
-rw-r--r--doc/zmq_term.txt20
1 files changed, 17 insertions, 3 deletions
diff --git a/doc/zmq_term.txt b/doc/zmq_term.txt
index 2e15c24..820fa30 100644
--- a/doc/zmq_term.txt
+++ b/doc/zmq_term.txt
@@ -16,9 +16,23 @@ DESCRIPTION
-----------
The _zmq_term()_ function terminates the 0MQ context 'context'.
-If there are still sockets open within 'context' at the time _zmq_term()_ is
-called the call will succeed but the actual shutdown of 'context' will be
-delayed until the last socket within it is closed.
+If there are no longer any sockets open within 'context' at the time
+_zmq_term()_ is called then 'context' shall be shut down and all associated
+resources shall be released immediately.
+
+Otherwise, the following applies:
+
+* The _zmq_term()_ function shall return immediately.
+
+* Any blocking operations currently in progress on sockets open within
+ 'context' shall return immediately with an error code of ETERM.
+
+* With the exception of _zmq_close()_, any further operations on sockets open
+ within 'context' shall fail with an error code of ETERM.
+
+* The actual shutdown of 'context', and release of any associated resources,
+ *shall be delayed* until the last socket within it is closed with
+ _zmq_close()_.
RETURN VALUE