Changeset 1120


Ignore:
Timestamp:
Mar 30, 2007 6:57:01 PM (13 years ago)
Author:
bennylp
Message:

Make simpleua work without threads

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/simpleua.c

    r974 r1120  
    248248     * This will implicitly initialize PJMEDIA too. 
    249249     */ 
     250#if PJ_HAS_THREADS 
    250251    status = pjmedia_endpt_create(&cp.factory, NULL, 1, &g_med_endpt); 
     252#else 
     253    status = pjmedia_endpt_create(&cp.factory,  
     254                                  pjsip_endpt_get_ioqueue(g_endpt),  
     255                                  0, &g_med_endpt); 
     256#endif 
    251257    PJ_ASSERT_RETURN(status == PJ_SUCCESS, 1); 
    252258 
Note: See TracChangeset for help on using the changeset viewer.