Differences From Artifact [01dedbef95]:
- File src/exceptions/OFThreadJoinFailedException.h — part of check-in [a8113fd82c] at 2011-03-25 14:56:43 on branch trunk — Pass the thread for thread exceptions. (user: js, size: 1454) [annotate] [blame] [check-ins using]
To Artifact [7b0847de05]:
- File
src/exceptions/OFThreadJoinFailedException.h
— part of check-in
[e1e7ffa903]
at
2011-09-22 23:25:42
on branch trunk
— Exceptions are now autoreleased.
This is safe as an "exception loop" can't happen, since if allocating
an exception fails, it throws an OFAllocFailedException which is
preallocated and can always be thrown.So, the worst case would be that an autorelease of an exception fails,
triggering an OFOutOfMemoryException for which there is no memory,
resulting in an OFAllocFailedException to be thrown. (user: js, size: 1466) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
31 32 33 34 35 36 37 | #endif /** * \param class_ The class of the object which caused the exception * \param thread The thread which could not be joined * \return A new thread join failed exception */ | | | | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | #endif /** * \param class_ The class of the object which caused the exception * \param thread The thread which could not be joined * \return A new thread join failed exception */ + exceptionWithClass: (Class)class_ thread: (OFThread*)thread; /** * Initializes an already allocated thread join failed exception. * * \param class_ The class of the object which caused the exception * \param thread The thread which could not be joined * \return An initialized thread join failed exception |
︙ | ︙ |