Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 2007 Pekka Riikonen
+ Copyright (C) 2007 - 2008 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
*/
-#include "silc.h"
+#include "silcruntime.h"
/***************************** Thread Pool API *****************************/
/*************************** Thread-local Storage ***************************/
+/* Set Tls context */
+
void silc_thread_tls_set(void *context)
{
SilcTls tls = silc_thread_get_tls();
tls->thread_context = context;
}
+/* Get Tls context */
+
void *silc_thread_tls_get(void)
{
SilcTls tls = silc_thread_get_tls();