This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <stdio.h> | |
| #import <dispatch/dispatch.h> | |
| #import <libkern/OSAtomic.h> | |
| #import <unistd.h> | |
| /* | |
| gcc-4.2 -arch x86_64 -std=gnu99 -O0 -mdynamic-no-pic -Wall -Werror -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -gdwarf-2 max-concurrent.c -o max-concurrent | |
| */ | |
| int main(int argc, char *argv[]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <Foundation/Foundation.h> | |
| #import <objc/runtime.h> | |
| #import <objc/objc-auto.h> | |
| /* | |
| cc -Wall -fobjc-gc objc-assoc.m -o objc-assoc -framework Foundation | |
| */ | |
| @interface ExtraData : NSObject | |
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <Foundation/Foundation.h> | |
| #import <objc/runtime.h> | |
| @interface ExtraData : NSObject | |
| @end | |
| @implementation ExtraData | |
| - (void)dealloc; | |
| { | |
| fprintf(stderr, "ExtraData %p deallocated\n", self); | |
| [super dealloc]; |
NewerOlder