Changeset 1660


Ignore:
Timestamp:
Nov 22, 2004, 2:45:33 AM (21 years ago)
Author:
bird
Message:

Fixed incorrect assertion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/lib/process/thread_internals.c

    • Property cvs2svn:cvs-rev changed from 1.9 to 1.10
    r1659 r1660  
    115115    /** @todo rewrite to use a read/write semaphore, not mutex. */
    116116    if (gmtxThrdDB.fs == _FMS_UNINIT)
    117         _fmutex_create(&gmtxThrdDB, 0);
     117        _fmutex_create2(&gmtxThrdDB, 0, "LIBC Thread DB Mutex");
    118118
    119119    rc = _fmutex_request(&gmtxThrdDB, 0);
     
    247247                }
    248248
    249             /* not found? search zombie DB. */
     249            /*
     250             * Not found? search zombie DB.
     251             */
    250252            if (p)
    251253            {
     
    254256                    gpThrdDBZombies = pThrd->pNext;
    255257                    gcThrdDBZombies--;
     258                    p = NULL;
    256259                }
    257260                else
     
    268271            }
    269272
    270             assert(p);                      /* it must be found! */
     273            /*
     274             * Did we succeed in finding it? If not don't dispose of the the thread!
     275             */
    271276            if (p)
     277            {
     278                assert(!p);
    272279                pThrd = NULL;
     280            }
    273281        }
    274282    }
Note: See TracChangeset for help on using the changeset viewer.