diff options
Diffstat (limited to 'doc/zmq_term.txt')
-rw-r--r-- | doc/zmq_term.txt | 20 |
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 |