[asterisk-scf-commits] asterisk-scf/integration/sip.git branch "master" updated.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Tue Aug 24 14:40:20 CDT 2010
branch "master" has been updated
via 6a87050f90ee2f66f772f11d01ced07deecd7342 (commit)
via 2fa6146883ac0484d8e9f1cd50badb2fd027b77c (commit)
from 13d70dab4b45eec6af3e1778ac3fc231d998fc8b (commit)
Summary of changes:
src/PJSipManager.cpp | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
- Log -----------------------------------------------------------------
commit 6a87050f90ee2f66f772f11d01ced07deecd7342
Author: Joshua Colp <jcolp at digium.com>
Date: Tue Aug 24 16:52:26 2010 -0300
Actually pass the endpoint into the monitor thread.
diff --git a/src/PJSipManager.cpp b/src/PJSipManager.cpp
index fe42776..bf94263 100644
--- a/src/PJSipManager.cpp
+++ b/src/PJSipManager.cpp
@@ -47,7 +47,7 @@ PJSipManager::PJSipManager()
std::cerr << "[ERROR] Failed to create a memory pool" << std::endl;
}
status = pj_thread_create(mMemoryPool, "SIP", (pj_thread_proc *) &monitorThread,
- NULL, PJ_THREAD_DEFAULT_STACK_SIZE, 0, &mPjThread);
+ mEndpoint, PJ_THREAD_DEFAULT_STACK_SIZE, 0, &mPjThread);
if (status != PJ_SUCCESS)
{
std::cerr << "[ERROR] Failed to create SIP maintenance thread" << std::endl;
commit 2fa6146883ac0484d8e9f1cd50badb2fd027b77c
Author: Joshua Colp <jcolp at digium.com>
Date: Tue Aug 24 16:50:28 2010 -0300
Threads started using pj_thread_create are automatically registered.
diff --git a/src/PJSipManager.cpp b/src/PJSipManager.cpp
index 4240e89..fe42776 100644
--- a/src/PJSipManager.cpp
+++ b/src/PJSipManager.cpp
@@ -12,10 +12,6 @@ boost::shared_ptr<PJSipManager> PJSipManager::mInstance(new PJSipManager);
static void *monitorThread(void *endpt)
{
- pj_thread_t *this_thread;
- pj_thread_desc desc;
- pj_bzero(desc, sizeof(desc));
- pj_thread_register("SIP Maintenance", desc, &this_thread);
pjsip_endpoint *endpoint = static_cast<pjsip_endpoint *> (endpt);
for (;;)
{
-----------------------------------------------------------------------
--
asterisk-scf/integration/sip.git
More information about the asterisk-scf-commits
mailing list