Added SILC Rand API, SILC Global Variables API and silcruntime.h.in
[runtime.git] / lib / silcutil / silcthread.c
index 8e51a15d13ef4c182382cf029f3b0f41512c3deb..c8507034e1eb9900f4c40a33fb82c56659ffaa8b 100644 (file)
@@ -4,7 +4,7 @@
 
   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
@@ -17,7 +17,7 @@
 
 */
 
-#include "silc.h"
+#include "silcruntime.h"
 
 /***************************** Thread Pool API *****************************/
 
@@ -585,6 +585,8 @@ void silc_thread_pool_purge(SilcThreadPool tp)
 
 /*************************** Thread-local Storage ***************************/
 
+/* Set Tls context */
+
 void silc_thread_tls_set(void *context)
 {
   SilcTls tls = silc_thread_get_tls();
@@ -599,6 +601,8 @@ void silc_thread_tls_set(void *context)
   tls->thread_context = context;
 }
 
+/* Get Tls context */
+
 void *silc_thread_tls_get(void)
 {
   SilcTls tls = silc_thread_get_tls();