static void func(SilcSchedule schedule, void *context)
{
- SILC_LOG_DEBUG(("func: %d", (int)context));
+ silc_thread_tls_set(context);
+ SILC_LOG_DEBUG(("func: %d", (int)silc_thread_tls_get()));
sleep(1);
}
silc_log_debug(TRUE);
silc_log_quick(TRUE);
silc_log_debug_hexdump(TRUE);
- silc_log_set_debug_string("*thread*");
+ silc_log_set_debug_string("*thread*,*errno*");
}
schedule = silc_schedule_init(0, NULL, NULL);