]>
git.saurik.com Git - iphone-api.git/blob - WebCore/WebCoreThreadMessage.h
2 * WebCoreThreadMessage.h
5 * Copyright (C) 2006, 2007, 2008, Apple Inc. All rights reserved.
9 #import <Foundation/Foundation.h>
12 #import <WebCore/WebCoreThread.h>
15 #if defined(__cplusplus)
20 // Release an object on the main thread.
22 @interface
NSObject(WebCoreThreadAdditions
)
23 - (void)releaseOnMainThread
;
26 // Register a class for deallocation on the WebThread
27 void WebCoreObjCDeallocOnWebThread(Class cls
);
29 // Asynchronous from main thread to web thread.
30 void WebThreadCallAPI(NSInvocation
*invocation
);
31 void WebThreadAdoptAndRelease(id obj
);
33 // Synchronous from web thread to main thread, or main thread to main thread.
34 void WebThreadCallDelegate(NSInvocation
*invocation
);
35 void WebThreadPostNotification(NSString
*name
, id object
, id userInfo
);
37 // Asynchronous from web thread to main thread, but synchronous when called on the main thread.
38 void WebThreadCallDelegateAsync(NSInvocation
*invocation
);
39 void WebThreadPostNotificationAsync(NSString
*name
, id object
, id userInfo
);
41 // Convenience method for creating an NSInvocation object
42 NSInvocation
*WebThreadCreateNSInvocation(id target
, SEL selector
);
44 #if defined(__cplusplus)