Running the stack in a multithreaded mode

From reSIProcate
Revision as of 15:48, 22 August 2005 by Jason (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The stack itself can not be run into multiple threads. In the original design, each transport instance could run in its own thread. This capability was removed since it did not seem to increase performance and introduced other design issues.

The stack can run in a separate thread from the TU (or application). The StackThread class can be used to take care of this for you. e.g.

SipStack stack;
StackThread sthread(stack);;