public static int GetCurrentThreadId() { return((int)LibC.pthread_mach_thread_np(LibC.pthread_self())); }