libzmq  master
ZeroMQ C++ Core Engine (LIBZMQ)
zmq::thread_t Class Reference

#include <thread.hpp>

Collaboration diagram for zmq::thread_t:

Public Member Functions

 thread_t ()
 
void setSchedulingParameters (int priority_, int schedulingPolicy_)
 
void start (thread_fn *tfn_, void *arg_)
 
void stop ()
 

Public Attributes

void * arg
 
thread_fntfn
 

Private Member Functions

 thread_t (const thread_t &)
 
const thread_toperator= (const thread_t &)
 

Private Attributes

pthread_t descriptor
 

Detailed Description

Definition at line 53 of file thread.hpp.

Constructor & Destructor Documentation

zmq::thread_t::thread_t ( )
inline

Definition at line 57 of file thread.hpp.

References setSchedulingParameters(), start(), and stop().

Here is the call graph for this function:

zmq::thread_t::thread_t ( const thread_t )
private

Member Function Documentation

const thread_t& zmq::thread_t::operator= ( const thread_t )
private
void zmq::thread_t::setSchedulingParameters ( int  priority_,
int  schedulingPolicy_ 
)

Definition at line 120 of file thread.cpp.

References descriptor, LIBZMQ_UNUSED, and posix_assert.

Referenced by zmq::ctx_t::start_thread(), and thread_t().

Here is the caller graph for this function:

void zmq::thread_t::start ( thread_fn tfn_,
void *  arg_ 
)

Definition at line 106 of file thread.cpp.

References arg, descriptor, posix_assert, tfn, and thread_routine().

Referenced by zmq::ctx_t::start_thread(), thread_t(), and zmq_threadstart().

Here is the call graph for this function:

Here is the caller graph for this function:

void zmq::thread_t::stop ( )

Definition at line 114 of file thread.cpp.

References descriptor, and posix_assert.

Referenced by thread_t(), and zmq_threadclose().

Here is the caller graph for this function:

Member Data Documentation

void* zmq::thread_t::arg

Definition at line 77 of file thread.hpp.

Referenced by start().

pthread_t zmq::thread_t::descriptor
private

Definition at line 84 of file thread.hpp.

Referenced by setSchedulingParameters(), start(), and stop().

thread_fn* zmq::thread_t::tfn

Definition at line 76 of file thread.hpp.

Referenced by start(), and thread_routine().