Changeset 1747


Ignore:
Timestamp:
Jan 25, 2008 12:01:03 PM (11 years ago)
Author:
bennylp
Message:

Ticket #459: pjmedia_clock_create() should not create thread when PJMEDIA_CLOCK_NO_ASYNC is given (thanks Alberto Takeshi Mayama)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/clock_thread.c

    r1509 r1747  
    9292        return status; 
    9393 
    94     status = pj_thread_create(pool, "clock", &clock_thread, clock, 
    95                               0, 0, &clock->thread); 
    96     if (status != PJ_SUCCESS) { 
    97         pj_lock_destroy(clock->lock); 
    98         return status; 
     94    if ((clock->options & PJMEDIA_CLOCK_NO_ASYNC) == 0) { 
     95        status = pj_thread_create(pool, "clock", &clock_thread, clock, 
     96                                  0, 0, &clock->thread); 
     97        if (status != PJ_SUCCESS) { 
     98            pj_lock_destroy(clock->lock); 
     99            return status; 
     100        } 
    99101    } 
    100102 
Note: See TracChangeset for help on using the changeset viewer.