projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added SILC Thread Queue API
[silc.git]
/
lib
/
silcutil
/
tests
/
test_silcthread.c
diff --git
a/lib/silcutil/tests/test_silcthread.c
b/lib/silcutil/tests/test_silcthread.c
index d59ed4e043066bea2b2a6e3e131e8def680aa8db..da078b3e8af34b79a7bfa783b79e08720bb149ec 100644
(file)
--- a/
lib/silcutil/tests/test_silcthread.c
+++ b/
lib/silcutil/tests/test_silcthread.c
@@
-6,7
+6,8
@@
SilcSchedule schedule;
static void func(SilcSchedule schedule, void *context)
{
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);
}
sleep(1);
}
@@
-27,7
+28,7
@@
int main(int argc, char **argv)
silc_log_debug(TRUE);
silc_log_quick(TRUE);
silc_log_debug_hexdump(TRUE);
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);
}
schedule = silc_schedule_init(0, NULL, NULL);