![]() |
libzmq
master
ZeroMQ C++ Core Engine (LIBZMQ)
|
#include "precompiled.hpp"
#include "macros.hpp"
#include "platform.hpp"
#include "clock.hpp"
#include "err.hpp"
#include "thread.hpp"
#include "atomic_counter.hpp"
#include "atomic_ptr.hpp"
#include <assert.h>
#include <unistd.h>
Go to the source code of this file.
Functions | |
int | zmq_atomic_counter_dec (void *counter_) |
void | zmq_atomic_counter_destroy (void **counter_p_) |
int | zmq_atomic_counter_inc (void *counter_) |
void * | zmq_atomic_counter_new (void) |
void | zmq_atomic_counter_set (void *counter_, int value_) |
int | zmq_atomic_counter_value (void *counter_) |
int | zmq_curve_keypair (char *z85_public_key, char *z85_secret_key) |
void | zmq_sleep (int seconds_) |
void * | zmq_stopwatch_start () |
unsigned long | zmq_stopwatch_stop (void *watch_) |
void | zmq_threadclose (void *thread) |
void * | zmq_threadstart (zmq_thread_fn *func, void *arg) |
uint8_t * | zmq_z85_decode (uint8_t *dest, const char *string) |
char * | zmq_z85_encode (char *dest, const uint8_t *data, size_t size) |
Variables | |
static uint8_t | decoder [96] |
static char | encoder [85+1] |
int zmq_atomic_counter_dec | ( | void * | counter_ | ) |
Definition at line 246 of file zmq_utils.cpp.
Referenced by main().
void zmq_atomic_counter_destroy | ( | void ** | counter_p_ | ) |
Definition at line 260 of file zmq_utils.cpp.
Referenced by main().
int zmq_atomic_counter_inc | ( | void * | counter_ | ) |
Definition at line 238 of file zmq_utils.cpp.
Referenced by main().
void* zmq_atomic_counter_new | ( | void | ) |
Definition at line 222 of file zmq_utils.cpp.
References alloc_assert.
Referenced by main().
void zmq_atomic_counter_set | ( | void * | counter_, |
int | value_ | ||
) |
Definition at line 231 of file zmq_utils.cpp.
Referenced by main().
int zmq_atomic_counter_value | ( | void * | counter_ | ) |
Definition at line 253 of file zmq_utils.cpp.
Referenced by main().
int zmq_curve_keypair | ( | char * | z85_public_key, |
char * | z85_secret_key | ||
) |
Definition at line 191 of file zmq_utils.cpp.
References ENOTSUP, and zmq_z85_encode().
Referenced by main().
void zmq_sleep | ( | int | seconds_ | ) |
Definition at line 53 of file zmq_utils.cpp.
Referenced by main().
void* zmq_stopwatch_start | ( | void | ) |
Definition at line 62 of file zmq_utils.cpp.
References alloc_assert, and zmq::clock_t::now_us().
Referenced by main().
unsigned long zmq_stopwatch_stop | ( | void * | watch_ | ) |
Definition at line 70 of file zmq_utils.cpp.
References zmq::clock_t::now_us().
Referenced by main().
void zmq_threadclose | ( | void * | thread | ) |
Definition at line 85 of file zmq_utils.cpp.
References LIBZMQ_DELETE, and zmq::thread_t::stop().
Referenced by main(), server_task(), test_ctx_shutdown(), test_multiple_threads(), and test_simultaneous_connect_bind_threads().
void* zmq_threadstart | ( | zmq_thread_fn * | func, |
void * | arg | ||
) |
Definition at line 78 of file zmq_utils.cpp.
References zmq::thread_t::start().
Referenced by main(), server_task(), test_ctx_shutdown(), test_multiple_threads(), and test_simultaneous_connect_bind_threads().
uint8_t* zmq_z85_decode | ( | uint8_t * | dest, |
const char * | string | ||
) |
Definition at line 158 of file zmq_utils.cpp.
References decoder.
Referenced by zmq::options_t::setsockopt().
char* zmq_z85_encode | ( | char * | dest, |
const uint8_t * | data, | ||
size_t | size | ||
) |
Definition at line 124 of file zmq_utils.cpp.
References encoder.
Referenced by zmq::options_t::getsockopt(), zap_handler(), and zmq_curve_keypair().
|
static |
Definition at line 103 of file zmq_utils.cpp.
Referenced by zmq_z85_decode().
|
static |
Definition at line 95 of file zmq_utils.cpp.
Referenced by zmq_z85_encode().