ladybird/Base/usr/share/man/man2/gettid.md
kleines Filmröllchen 98c0c5e9e6 Help+Base: Add help://man URLs for links between man pages
The URLs of the form `help://man/<section>/<page>` link to another help
page inside the help application. All previous relative page links are
replaced by this new form. This doesn't change any behavior but it looks
much nicer :^)

Note that man doesn't handle these new links, but the previous relative
links didn't work either.
2022-01-11 00:24:57 +01:00

28 lines
475 B
Markdown

## Name
gettid - get current thread ID
## Synopsis
```**c++
#include <unistd.h>
int gettid();
```
## Description
Returns the TID (thread ID) of the calling thread. The first thread in a process has the same TID and PID. Subsequently spawned threads will have unique thread ID's, but all share the same PID.
## Return value
The thread ID of the calling thread.
## Error
None.
## See also
* [`getpid`(2)](help://man/2/getpid)
* [`getppid`(2)](help://man/2/getppid)