mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-10 08:08:33 +01:00
Minor cleanups
* corrects whitespace errors * fixes spelling errors in comments * prefers #ifdef to #if defined
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
#include "platform.hpp"
|
||||
#if defined ZMQ_HAVE_WINDOWS
|
||||
#ifdef ZMQ_HAVE_WINDOWS
|
||||
#include "windows.hpp"
|
||||
#else
|
||||
#include <unistd.h>
|
||||
@@ -245,7 +245,7 @@ void zmq::ctx_t::destroy_socket (class socket_base_t *socket_)
|
||||
{
|
||||
slot_sync.lock ();
|
||||
|
||||
// Free the associared thread slot.
|
||||
// Free the associated thread slot.
|
||||
uint32_t tid = socket_->get_tid ();
|
||||
empty_slots.push_back (tid);
|
||||
slots [tid] = NULL;
|
||||
|
||||
12
src/ctx.hpp
12
src/ctx.hpp
@@ -48,7 +48,7 @@ namespace zmq
|
||||
// for synchronisation, handshaking or similar.
|
||||
struct endpoint_t
|
||||
{
|
||||
class socket_base_t *socket;
|
||||
socket_base_t *socket;
|
||||
options_t options;
|
||||
};
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace zmq
|
||||
{
|
||||
public:
|
||||
|
||||
// Create the context object
|
||||
// Create the context object.
|
||||
ctx_t ();
|
||||
|
||||
// Returns false if object is not a context.
|
||||
@@ -71,7 +71,7 @@ namespace zmq
|
||||
// after the last one is closed.
|
||||
int terminate ();
|
||||
|
||||
// Set and set context properties
|
||||
// Set and get context properties.
|
||||
int set (int option_, int optval_);
|
||||
int get (int option_);
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace zmq
|
||||
|
||||
// Returns the I/O thread that is the least busy at the moment.
|
||||
// Affinity specifies which I/O threads are eligible (0 = all).
|
||||
// Returns NULL is no I/O thread is available.
|
||||
// Returns NULL if no I/O thread is available.
|
||||
zmq::io_thread_t *choose_io_thread (uint64_t affinity_);
|
||||
|
||||
// Returns reaper thread object.
|
||||
@@ -117,8 +117,8 @@ namespace zmq
|
||||
typedef std::vector <uint32_t> emtpy_slots_t;
|
||||
emtpy_slots_t empty_slots;
|
||||
|
||||
// If true, zmq_init has been called but no socket have been created
|
||||
// yes. Launching of I/O threads is delayed.
|
||||
// If true, zmq_init has been called but no socket has been created
|
||||
// yet. Launching of I/O threads is delayed.
|
||||
bool starting;
|
||||
|
||||
// If true, zmq_term was already called.
|
||||
|
||||
Reference in New Issue
Block a user