w3thread.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) by Christian Gosch.
00003 
00004     This file is part of w3server, a very small HTTP(-subset) server.
00005 
00006     w3server is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     Foobar is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with Foobar; if not, write to the Free Software
00018     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00019 */
00020 #ifndef __W3THREAD_H
00021 #define __W3THREAD_H
00022 
00023 #include <config.h>
00024 
00025 #ifdef HAVE_LIBPTHREAD
00026 #include <pthread.h> 
00027 
00028 
00029 #include <w3types.h>
00030 
00039 typedef struct {
00040   void *startRoutine;
00041   void *arg;
00042 
00043   pthread_t      ID;
00044   pthread_attr_t attr;
00045 } w3Thread;
00046 
00050 w3Thread* w3ThreadRun (void* start_func, void* arg);
00051 
00055 boolean w3ThreadJoin (w3Thread *t);
00056 
00060 boolean w3ThreadDestroy (w3Thread *t);
00065 #endif
00066 #endif

Generated on Thu Jul 6 15:37:31 2006 for w3server by  doxygen 1.4.6