Overview
Comment: | Preliminary OFThread implementation. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
e5bcc6a3be5524ff785b087ed21b7929 |
User & Date: | js on 2009-05-01 20:24:33 |
Other Links: | manifest | tags |
Context
2009-05-01
| ||
22:28 | Work around a compiler bug that occurs on OS X. check-in: 06ad922132 user: js tags: trunk | |
20:24 | Preliminary OFThread implementation. check-in: e5bcc6a3be user: js tags: trunk | |
19:38 | Some tests were still using #import for C headers. Fixed. check-in: f198059455 user: js tags: trunk | |
Changes
Modified src/Makefile from [e9f81ad1c1] to [369dbcb763].
︙ | |||
14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | + | OFIterator.m \ OFList.m \ OFNumber.m \ OFObject.m \ ${OFPLUGIN_M} \ OFString.m \ OFTCPSocket.m \ OFThread.m \ OFXMLFactory.m \ ${ASPRINTF_C} INCLUDESTMP = ${SRCS:.c=.h} INCLUDES = ${INCLUDESTMP:.m=.h} \ OFMacros.h \ OFStream.h |
︙ |
Modified src/OFExceptions.h from [a0a41c0e56] to [a500d93cbc].
︙ | |||
579 580 581 582 583 584 585 | 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 | + + + + + + + + + + + + | } /** * \return The errno from when the exception was created */ - (int)errNo; @end /** * An OFException indicating that joining the thread failed. */ @interface OFThreadJoinFailedException: OFException {} @end /** * An OFException indicating that the thread has been canceled. */ @interface OFThreadCanceledException: OFException {} @end |
Modified src/OFExceptions.m from [0456aef792] to [da2de5e5ed].
︙ | |||
760 761 762 763 764 765 766 | 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 | + + + + + + + + + + + + + + + + + + + + + + + + + + + | } - (int)errNo { return err; } @end @implementation OFThreadJoinFailedException - (const char*)cString { if (string != NULL) return string; asprintf(&string, "Joining a thread of class %s failed! Most likely, " "another thread already waits for the thread to join.", [class name]); return string; } @end @implementation OFThreadCanceledException - (const char*)cString { if (string != NULL) return string; asprintf(&string, "The requested action cannot be performed because " "the thread of class %s was canceled!", [class name]); return string; } @end |
Added src/OFThread.h version [1ac78297bf].
|
Added src/OFThread.m version [170f123979].