Differences From Artifact [53e6bbc1b9]:
- File tests/objc_sync/test.m — part of check-in [a3cc34b139] at 2009-11-09 22:45:13 on branch trunk — Rename libobjfw to ObjFW. (user: js, size: 971) [annotate] [blame] [check-ins using]
To Artifact [935014e663]:
- File tests/objc_sync/test.m — part of check-in [42dedf0153] at 2010-05-16 19:24:08 on branch trunk — objc_sync was still using the old threads API. Fixed. (user: js, size: 998) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
41 42 43 44 45 46 47 48 49 50 51 52 53 | int main() { lock = [[OFObject alloc] init]; MyThread *t1 = [MyThread threadWithObject: @"A"]; MyThread *t2 = [MyThread threadWithObject: @"B"]; [t1 join]; [t2 join]; return 0; } | > > > | 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | int main() { lock = [[OFObject alloc] init]; MyThread *t1 = [MyThread threadWithObject: @"A"]; MyThread *t2 = [MyThread threadWithObject: @"B"]; [t1 start]; [t2 start]; [t1 join]; [t2 join]; return 0; } |