forked from hintjens/czmq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zsocket_bind no longer reuses dynamic ports
- Loading branch information
Showing
15 changed files
with
205 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ MAN7 = czmq.7 \ | |
zlist.7 \ | ||
zloop.7 \ | ||
zmsg.7 \ | ||
zmutex.7 \ | ||
zsocket.7 \ | ||
zsockopt.7 \ | ||
zstr.7 \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
zmutex(7) | ||
========= | ||
|
||
NAME | ||
---- | ||
zmutex - working with mutexes | ||
|
||
SYNOPSIS | ||
-------- | ||
---- | ||
// Create a new mutex container | ||
CZMQ_EXPORT zmutex_t * | ||
zmutex_new (void); | ||
|
||
// Destroy a mutex container | ||
CZMQ_EXPORT void | ||
zmutex_destroy (zmutex_t **self_p); | ||
|
||
// Lock mutex | ||
CZMQ_EXPORT void | ||
zmutex_lock (zmutex_t *self); | ||
|
||
// Unlock mutex | ||
CZMQ_EXPORT void | ||
zmutex_unlock (zmutex_t *self); | ||
|
||
// Self test of this class | ||
int | ||
zmutex_test (bool verbose); | ||
---- | ||
|
||
DESCRIPTION | ||
----------- | ||
|
||
The zmutex class provides a portable wrapper for mutexes. Please do not | ||
use this class to do multi-threading. It is for the rare case where you | ||
absolutely need thread-safe global state. This should happen in system | ||
code only. DO NOT USE THIS TO SHARE SOCKETS BETWEEN THREADS, OR DARK | ||
THINGS WILL HAPPEN TO YOUR CODE. | ||
|
||
|
||
EXAMPLE | ||
------- | ||
.From zmutex_test method | ||
---- | ||
zmutex_t *mutex = zmutex_new (); | ||
zmutex_lock (mutex); | ||
zmutex_unlock (mutex); | ||
zmutex_destroy (&mutex); | ||
---- | ||
|
||
SEE ALSO | ||
-------- | ||
linkczmq:czmq[7] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.