Implement non-blocking shutdown command that unblocks other threads waiting on blocking operations.

This commit is contained in:
Richard Newton
2013-09-10 13:30:00 +01:00
parent a601b3f6f4
commit 64e1c181f7
8 changed files with 183 additions and 0 deletions

View File

@@ -69,6 +69,15 @@ namespace zmq
// after the last one is closed.
int terminate ();
// This function starts the terminate process by unblocking any blocking
// operations currently in progress and stopping any more socket activity
// (except zmq_close).
// This function is non-blocking.
// terminate must still be called afterwards.
// This function is optional, terminate will unblock any current
// operations as well.
int shutdown();
// Set and get context properties.
int set (int option_, int optval_);
int get (int option_);