Add pthreads lib to compilateion
Example of thread local