/* Helper function, run by a thread which is being ended  */
static void nct_exit_and_cleanup(struct te_status_t *this)
/* Helper function, run by a thread which is being ended  */
static void nct_exit_and_cleanup(struct te_status_t *this)
{
	NSI_SAFE_CALL(pthread_mutex_unlock(&this->mtx_threads));
	pthread_detach(pthread_self());
	pthread_exit(NULL);
}