pthread_self - get calling thread's ID
#include <pthread.h>
Callable from ISR.
pthread_self() returns the thread ID of the calling thread.
pthread_create(), pthread_equal()