IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28400


Ignore:
Timestamp:
Jun 17, 2010, 9:41:38 PM (16 years ago)
Author:
Paul Price
Message:

Lock on finishing up, because threads are still running. Ensure threads start.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psThread.c

    r28351 r28400  
    278278    for (int i = 0; i < nThreads; i++) {
    279279        psThread *thread = psThreadAlloc(); // Thread for pool
    280         pthread_create(&thread->pt, NULL, psThreadLauncher, thread);
     280        int success = pthread_create(&thread->pt, NULL, psThreadLauncher, thread);
     281        psAssert(!success, "Unable to start thread");
    281282        pool->data[i] = thread;
    282283    }
     
    365366bool psThreadPoolFinalize(void)
    366367{
     368    psThreadLock();
    367369    psFree(pending);
    368370    pending = NULL;
     
    386388#endif
    387389
     390    psThreadUnlock();
     391
    388392    return true;
    389393}
Note: See TracChangeset for help on using the changeset viewer.