X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcutil%2Fsilcthread.h;h=c1ecf92d4801e0b58c45c9d0a9f1b1ba5d2057a7;hb=d1e71f42379e8b5cd0748a7aeae8561b02cfe53d;hp=5d4932d8fb574e8284178ba1176a7137624c44c0;hpb=2971471c6955c1217921700290624d4cb3ed303e;p=silc.git diff --git a/lib/silcutil/silcthread.h b/lib/silcutil/silcthread.h index 5d4932d8..c1ecf92d 100644 --- a/lib/silcutil/silcthread.h +++ b/lib/silcutil/silcthread.h @@ -1,33 +1,32 @@ -/****h* silcutil/silcthread.h - * - * NAME - * - * silcmutex.h - * - * COPYRIGHT - * - * Author: Pekka Riikonen - * - * 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 + + 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);