sp_pthread_t
sp_pthread_t pam_thread;
pthread_create(sp_pthread_t *thread, const void *attr,
pthread_cancel(sp_pthread_t thread)
pthread_join(sp_pthread_t thread, void **value)