Merged silc_1_0_branch to trunk.
[silc.git] / lib / silcutil / silcthread.h
index 5d4932d8fb574e8284178ba1176a7137624c44c0..c1ecf92d4801e0b58c45c9d0a9f1b1ba5d2057a7 100644 (file)
@@ -1,33 +1,32 @@
-/****h* silcutil/silcthread.h
- *
- * NAME
- *
- * silcmutex.h
- *
- * COPYRIGHT
- *
- * Author: Pekka Riikonen <priikone@silcnet.org>
- *
- * Copyright (C) 2001 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
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
+/*
+
+  silcmutex.h
+
+  Author: Pekka Riikonen <priikone@silcnet.org>
+
+  Copyright (C) 2001 - 2005 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
+  the Free Software Foundation; version 2 of the License.
+
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+*/
+
+/****h* silcutil/SILC Thread Interface
  *
  * DESCRIPTION
  *
  * Interface for SILC Thread implementation. This is platform independent
- * implementation of threads for applications needing concurrent execution
- * with the application's main thread. The threads created with this 
+ * interface of threads for applications that need concurrent execution
+ * with the application's main thread. The threads created with this
  * interface executes concurrently with the calling thread.
  *
- */
+ ***/
 
 #ifndef SILCTHREAD_H
 #define SILCTHREAD_H
@@ -37,7 +36,7 @@
 /****s* silcutil/SilcThreadAPI/SilcThread
  *
  * NAME
- * 
+ *
  *    typedef struct SilcThreadStruct *SilcThread;
  *
  * DESCRIPTION
@@ -72,8 +71,8 @@ typedef void *(*SilcThreadStart)(void *context);
  *
  * SYNOPSIS
  *
- *    SilcThread silc_thread_create(SilcThreadStart start_func, void *context);
- *
+ *    SilcThread silc_thread_create(SilcThreadStart start_func,
+ *                                  void *context, bool waitable);
  * DESCRIPTION
  *
  *    Creates a new thread. The `start_func' with `context' will be
@@ -122,7 +121,7 @@ void silc_thread_exit(void *exit_value);
  *
  * DESCRIPTION
  *
- *    Returns a pointer of the current thread.
+ *    Returns a pointer to the current thread.
  *
  ***/
 SilcThread silc_thread_self(void);