Changeset 3855


Ignore:
Timestamp:
Oct 25, 2011 12:14:12 PM (8 years ago)
Author:
nanang
Message:

Re #1394: Ignore thread join if called from the same thread, it will cause the thread blocks forever.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/os_core_win32.c

    r3666 r3855  
    560560    PJ_ASSERT_RETURN(p, PJ_EINVAL); 
    561561 
     562    if (p == pj_thread_this()) 
     563        return PJ_ECANCELLED; 
     564 
    562565    PJ_LOG(6, (pj_thread_this()->obj_name, "Joining thread %s", p->obj_name)); 
    563566 
Note: See TracChangeset for help on using the changeset viewer.