Changeset 25660 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Jan 5, 2010 4:52:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/thread.cpp
r25648 r25660 524 524 } 525 525 526 527 526 /** 528 527 * Release a per thread data structure. … … 542 541 } 543 542 else 543 { 544 544 cRefs = 0; 545 AssertFailed(); 546 } 545 547 return cRefs; 546 548 } … … 571 573 572 574 /* 573 * Invalidate the thread structure and free it.575 * Invalidate the thread structure. 574 576 */ 575 577 #ifdef IN_RING3 … … 585 587 pThread->EventTerminated = NIL_RTSEMEVENTMULTI; 586 588 587 RTMemFree(pThread);588 589 589 #ifdef IN_RING3 590 590 rtLockValidatorSerializeDestructLeave(); … … 592 592 593 593 /* 594 * Destroy semaphore resources .594 * Destroy semaphore resources and free the bugger. 595 595 */ 596 596 RTSemEventMultiDestroy(hEvt1); 597 597 if (hEvt2 != NIL_RTSEMEVENTMULTI) 598 598 RTSemEventMultiDestroy(hEvt2); 599 600 RTMemFree(pThread); 599 601 } 600 602
Note:
See TracChangeset
for help on using the changeset viewer.