Getting thread id of current method call
Is there a way to print out the current thread id on which the current method is executing on?
(objective-c please)
NSLog(@"%@", [NSThread currentThread]);
#include <pthread.h>
...
mach_port_t machTID = pthread_mach_thread_np(pthread_self());
NSLog(@"current thread: %x", machTID);