mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 18:55:10 +01:00
Problem: misleading comments referring to a "library shutdown"
Solution: change to refer to the context
This commit is contained in:
parent
9a376fbe24
commit
b462cc0912
@ -1018,7 +1018,7 @@ int zmq::socket_base_t::term_endpoint (const char *endpoint_uri_)
|
||||
{
|
||||
scoped_optional_lock_t sync_lock (_thread_safe ? &_sync : NULL);
|
||||
|
||||
// Check whether the library haven't been shut down yet.
|
||||
// Check whether the context hasn't been shut down yet.
|
||||
if (unlikely (_ctx_terminated)) {
|
||||
errno = ETERM;
|
||||
return -1;
|
||||
@ -1081,7 +1081,7 @@ int zmq::socket_base_t::send (msg_t *msg_, int flags_)
|
||||
{
|
||||
scoped_optional_lock_t sync_lock (_thread_safe ? &_sync : NULL);
|
||||
|
||||
// Check whether the library haven't been shut down yet.
|
||||
// Check whether the context hasn't been shut down yet.
|
||||
if (unlikely (_ctx_terminated)) {
|
||||
errno = ETERM;
|
||||
return -1;
|
||||
@ -1169,7 +1169,7 @@ int zmq::socket_base_t::recv (msg_t *msg_, int flags_)
|
||||
{
|
||||
scoped_optional_lock_t sync_lock (_thread_safe ? &_sync : NULL);
|
||||
|
||||
// Check whether the library haven't been shut down yet.
|
||||
// Check whether the context hasn't been shut down yet.
|
||||
if (unlikely (_ctx_terminated)) {
|
||||
errno = ETERM;
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user