iPhone: How to determine if thread is main thread? [duplicate]

Like this: [NSThread isMainThread]