c/thread/thrd equal

Checks whether and  refer to the same thread.

Return value
Non-zero value if and  refer to the same value,  otherwise.