thread_current - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# thread_current

From cppreference.com
< c‎ | thread

Defined in header `<threads.h>` |  |
thrd_t thrd_current(); |  | (since C11)

Returns the identifier of the calling thread.

### [edit] Parameters

(none)

### [edit] Return value

The identifier of the calling thread.

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