Changeset 28400 for trunk/psLib/src/sys/psThread.c
- Timestamp:
- Jun 17, 2010, 9:41:38 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psThread.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psThread.c
r28351 r28400 278 278 for (int i = 0; i < nThreads; i++) { 279 279 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"); 281 282 pool->data[i] = thread; 282 283 } … … 365 366 bool psThreadPoolFinalize(void) 366 367 { 368 psThreadLock(); 367 369 psFree(pending); 368 370 pending = NULL; … … 386 388 #endif 387 389 390 psThreadUnlock(); 391 388 392 return true; 389 393 }
Note:
See TracChangeset
for help on using the changeset viewer.
