mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-04 19:13:35 +01:00
Fix formatting.
This commit is contained in:
parent
90425cd5d6
commit
7a510b4b60
@ -40,8 +40,8 @@
|
||||
|
||||
int clipped_maxsocket(int max_requested)
|
||||
{
|
||||
if (max_requested >= zmq::poller_t::max_fds() && zmq::poller_t::max_fds() != -1)
|
||||
max_requested = zmq::poller_t::max_fds() - 1; // -1 because we need room for the repear mailbox.
|
||||
if (max_requested >= zmq::poller_t::max_fds () && zmq::poller_t::max_fds () != -1)
|
||||
max_requested = zmq::poller_t::max_fds () - 1; // -1 because we need room for the repear mailbox.
|
||||
|
||||
return max_requested;
|
||||
}
|
||||
@ -53,7 +53,7 @@ zmq::ctx_t::ctx_t () :
|
||||
reaper (NULL),
|
||||
slot_count (0),
|
||||
slots (NULL),
|
||||
max_sockets(clipped_maxsocket(ZMQ_MAX_SOCKETS_DFLT)),
|
||||
max_sockets (clipped_maxsocket (ZMQ_MAX_SOCKETS_DFLT)),
|
||||
io_thread_count (ZMQ_IO_THREADS_DFLT),
|
||||
ipv6 (false)
|
||||
{
|
||||
@ -169,7 +169,7 @@ int zmq::ctx_t::shutdown ()
|
||||
int zmq::ctx_t::set (int option_, int optval_)
|
||||
{
|
||||
int rc = 0;
|
||||
if (option_ == ZMQ_MAX_SOCKETS && optval_ >= 1 && optval_ == clipped_maxsocket(optval_)) {
|
||||
if (option_ == ZMQ_MAX_SOCKETS && optval_ >= 1 && optval_ == clipped_maxsocket (optval_)) {
|
||||
opt_sync.lock ();
|
||||
max_sockets = optval_;
|
||||
opt_sync.unlock ();
|
||||
|
@ -133,7 +133,7 @@ void zmq::devpoll_t::stop ()
|
||||
stopping = true;
|
||||
}
|
||||
|
||||
int zmq::devpoll_t::max_fds()
|
||||
int zmq::devpoll_t::max_fds ()
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ namespace zmq
|
||||
void start ();
|
||||
void stop ();
|
||||
|
||||
static int max_fds();
|
||||
static int max_fds ();
|
||||
|
||||
private:
|
||||
|
||||
|
@ -126,7 +126,7 @@ void zmq::epoll_t::stop ()
|
||||
stopping = true;
|
||||
}
|
||||
|
||||
int zmq::epoll_t::max_fds()
|
||||
int zmq::epoll_t::max_fds ()
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ namespace zmq
|
||||
void start ();
|
||||
void stop ();
|
||||
|
||||
static int max_fds();
|
||||
static int max_fds ();
|
||||
|
||||
private:
|
||||
|
||||
|
@ -152,7 +152,7 @@ void zmq::kqueue_t::stop ()
|
||||
stopping = true;
|
||||
}
|
||||
|
||||
int zmq::kqueue_t::max_fds()
|
||||
int zmq::kqueue_t::max_fds ()
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ namespace zmq
|
||||
void start ();
|
||||
void stop ();
|
||||
|
||||
static int max_fds();
|
||||
static int max_fds ();
|
||||
|
||||
private:
|
||||
|
||||
|
@ -114,7 +114,7 @@ void zmq::poll_t::stop ()
|
||||
stopping = true;
|
||||
}
|
||||
|
||||
int zmq::poll_t::max_fds()
|
||||
int zmq::poll_t::max_fds ()
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ namespace zmq
|
||||
void start ();
|
||||
void stop ();
|
||||
|
||||
static int max_fds();
|
||||
static int max_fds ();
|
||||
|
||||
private:
|
||||
|
||||
|
@ -144,7 +144,7 @@ void zmq::select_t::stop ()
|
||||
stopping = true;
|
||||
}
|
||||
|
||||
int zmq::select_t::max_fds()
|
||||
int zmq::select_t::max_fds ()
|
||||
{
|
||||
return FD_SETSIZE;
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ namespace zmq
|
||||
void start ();
|
||||
void stop ();
|
||||
|
||||
static int max_fds();
|
||||
static int max_fds ();
|
||||
|
||||
private:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user