Indeed, but the pthreads in my example were created as detached (I showed a parameter '&detach' which was intended to give a strong hint to that effect).
Suppose I declare
pthread_t clear_thread;
and then
pthread_create(&clear_thread, &detach, clear_message, this);
the thread is supposed to go away, perform the service it is intended to...