我有两个线程主线程和工作线程。我希望能够做的是将回调(委托)安排到工作线程,而不管谁调用触发这些代理的函数。例如:
/* mainThread */
[Obj asyncCallback]; // triggers callback to delegate foo()
/* Worker thread should do all the callback processing. i.e when foo() is called [NSThread currentThread] should always give worker threads ID and never main threads ID. */