thrd_equal - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# thrd_equal

From cppreference.com
< c‎ | thread

Defined in header `<threads.h>` |  |
int thrd_equal( thrd_t lhs, thrd_t rhs ); |  | (since C11)

Checks whether `lhs` and `rhs` refer to the same thread.

### [edit] Parameters

lhs, rhs | - | threads to compare

### [edit] Return value

Non-zero value if `lhs` and `rhs` refer to the same value, ​0​ otherwise.

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/thread/thrd_equal&oldid=65924"