Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
476c9b97
Commit
476c9b97
authored
Mar 29, 2012
by
Ian Barber
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #299 from pieterh/master
Added checking to zmq_ctx_set()
parents
3eaae8b2
9728706b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ctx.cpp
src/ctx.cpp
+2
-2
No files found.
src/ctx.cpp
View file @
476c9b97
...
...
@@ -128,13 +128,13 @@ int zmq::ctx_t::terminate ()
int
zmq
::
ctx_t
::
set
(
int
option_
,
int
optval_
)
{
int
rc
=
0
;
if
(
option_
==
ZMQ_MAX_SOCKETS
)
{
if
(
option_
==
ZMQ_MAX_SOCKETS
&&
optval_
>=
1
)
{
opt_sync
.
lock
();
max_sockets
=
optval_
;
opt_sync
.
unlock
();
}
else
if
(
option_
==
ZMQ_IO_THREADS
)
{
if
(
option_
==
ZMQ_IO_THREADS
&&
optval_
>=
0
)
{
opt_sync
.
lock
();
io_thread_count
=
optval_
;
opt_sync
.
unlock
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment