37#elif YAZ_POSIX_THREADS
38 pthread_t t = pthread_self();
41 for (i = 0; i <
sizeof(t); i++)
43 if (strlen(buf) >= buf_max-2)
45 yaz_snprintf(buf + strlen(buf), 3,
"%02x", ((
const unsigned char *) &t)[i]);
void yaz_snprintf(char *buf, size_t size, const char *fmt,...)
Header for config file reading utilities.
void yaz_thread_id_cstr(char *buf, size_t buf_max)
format current thread as printable C-string
Header for Mutex functions.