// Get the current thread identifier. public static int GetCurrentThreadId() { return(Thread.InternalGetThreadId()); }