aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/utils/MCOOperation.h
diff options
context:
space:
mode:
authorGravatar Andrey Isaev <andrey@tocobox.com>2014-07-03 17:50:45 +0400
committerGravatar Andrey Isaev <andrey@tocobox.com>2014-07-03 17:50:45 +0400
commitc3d53044a021f96fd50b97f5e2a3454ff37a28df (patch)
tree57d7070969890f32bf708c4fb99719422b5f6ec9 /src/objc/utils/MCOOperation.h
parenta03a49cf55e0e01482f89a171bdf73a1e200a1a6 (diff)
dispatch_queue_t property: check OS_OBJECT_HAVE_OBJC_SUPPORT
Diffstat (limited to 'src/objc/utils/MCOOperation.h')
-rw-r--r--src/objc/utils/MCOOperation.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/objc/utils/MCOOperation.h b/src/objc/utils/MCOOperation.h
index b42dfbef..e3aa758a 100644
--- a/src/objc/utils/MCOOperation.h
+++ b/src/objc/utils/MCOOperation.h
@@ -23,7 +23,11 @@
/** The queue this operation dispatches the callback on. Defaults to the main queue.
This property should be used only if there's performance issue creating or calling the callback
in the main thread. */
+#if OS_OBJECT_USE_OBJC
@property (nonatomic, retain) dispatch_queue_t callbackDispatchQueue;
+#else
+@property (nonatomic, assign) dispatch_queue_t callbackDispatchQueue;
+#endif
/** This methods is called on the main thread when the asynchronous operation is finished.
Needs to be overriden by subclasses.*/