Make simpleua work without threads

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1120 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Benny Prijono 2007-03-30 18:57:01 +00:00
parent 6b5b6602a9
commit 54826a3955
1 changed files with 6 additions and 0 deletions

View File

@ -247,7 +247,13 @@ int main(int argc, char *argv[])
* Initialize media endpoint.
* This will implicitly initialize PJMEDIA too.
*/
#if PJ_HAS_THREADS
status = pjmedia_endpt_create(&cp.factory, NULL, 1, &g_med_endpt);
#else
status = pjmedia_endpt_create(&cp.factory,
pjsip_endpt_get_ioqueue(g_endpt),
0, &g_med_endpt);
#endif
PJ_ASSERT_RETURN(status == PJ_SUCCESS, 1);
/*