libcsdbg  1.28
C++ exception (and generic) stack trace debug library
thread & csdbg::thread::operator= ( const thread rval)
virtual

Assignment operator.

Parameters
[in]rvalthe assigned object
Returns
*this
Exceptions
std::bad_alloc

Definition at line 167 of file thread.cpp.

References m_handle, m_lag, m_name, m_stack, set_name(), and unlikely.

168 {
169  if ( unlikely(this == &rval) )
170  return *this;
171 
172  *m_stack = *rval.m_stack;
173  m_handle = rval.m_handle;
174  m_lag = rval.m_lag;
175 
176  return set_name(rval.m_name);
177 }
stack< call > * m_stack
Simulated call stack.
Definition: thread.hpp:37
i32 m_lag
The number of calls that must be popped off the simulated stack for it to match the real one...
Definition: thread.hpp:39
#define unlikely(expr)
Offer a hint (negative) to the pipeline branch predictor.
Definition: config.hpp:349
pthread_t m_handle
Thread handle.
Definition: thread.hpp:35
virtual thread & set_name(const i8 *)
Set the thread name.
Definition: thread.cpp:138

+ Here is the call graph for this function: