36 #elif YAZ_POSIX_THREADS
37 pthread_t t = pthread_self();
40 for (i = 0; i <
sizeof(t); i++)
42 if (strlen(buf) >= buf_max-2)
44 sprintf(buf + strlen(buf),
"%02x", ((
const unsigned char *) &t)[i]);
void yaz_thread_id_cstr(char *buf, size_t buf_max)
format current thread as printable C-string
Header for Mutex functions.