Changeset 28401
- Timestamp:
- Jun 18, 2010, 10:47:02 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sys/psMemory.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psMemory.c
r23305 r28401 452 452 #endif 453 453 454 // XXX Looking at the reference counter is subject to a race condition because this function is generally 455 // not locked. Normally this is not a problem because though we may increment and decrement references 456 // within a thread, we don't destroy the object completely (which is what we're checking for here). It is 457 // the user's responsibility to protect against the complete destruction of memory either by not doing it 458 // or by locking on all reference changes for that memory. 454 459 if (memBlock->refCounter < 1) { 455 460 // using an unreferenced block of memory, are you?
Note:
See TracChangeset
for help on using the changeset viewer.
