common/win32/pthread_w32.c

00001 /*
00002  * Copyright Ian Burnett 2005, 2006.
00003  *
00004  * This file is part of Ian's Interactive LCD controller (IILC).
00005  * 
00006  * IILC is free software; you can redistribute it and/or modify it under
00007  * the terms of the GNU General Public License as published by the Free
00008  * Software Foundation; either version 2 of the License, or (at your
00009  * option) any later version.
00010  *
00011  * IILC is distributed in the hope that it will be useful, but WITHOUT
00012  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00013  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00014  * for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License along
00017  * with IILC; if not, write to the Free Software Foundation, Inc.,
00018  * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA.
00019  */
00020 
00021 #if defined(_WIN32)
00022 #   define WIN32_LEAN_AND_MEAN
00023 #   include <windows.h>
00024 #   include "pthread_w32.h"
00025 #else
00026 #   error "Not intended to be compiled on non-Win32 platforms"
00027 #endif
00028 
00029 
00030 /****************************************************************************
00031  *                                                                          *
00032  *                            SEMAPHORE FUNCTIONS                           *
00033  *                                                                          *
00034  ****************************************************************************/
00035 
00036 int pthread_cond_init(pthread_cond_t * cond, const pthread_condattr_t * attr)
00037 {
00038 
00039 
00040     return 0;
00041 }
00042 
00043 int pthread_cond_destroy(pthread_cond_t * cond)
00044 {
00045 
00046 
00047 
00048     return 0;
00049 }
00050 
00051 int pthread_cond_broadcast(pthread_cond_t * cond)
00052 {
00053 
00054 
00055 
00056     return 0;
00057 }
00058 
00059 int pthread_cond_signal(pthread_cond_t *cond)
00060 {
00061 
00062 
00063 
00064     return 0;
00065 }
00066 
00067 int pthread_cond_timedwait(pthread_cond_t * cond, pthread_mutex_t * mutex, 
00068                            const struct timespec * abstime)
00069 {
00070 
00071 
00072 
00073 
00074     return 0;
00075 }
00076 
00077 int pthread_cond_wait(pthread_cond_t * cond, pthread_mutex_t * mutex)
00078 {
00079 
00080 
00081 
00082 
00083     return 0;
00084 }
00085 
00086 /****************************************************************************
00087  *                                                                          *
00088  *                              MUTEX FUNCTIONS                             *
00089  *                                                                          *
00090  ****************************************************************************/
00091 
00092 int pthread_mutex_init(pthread_mutex_t * mutex, const pthread_mutexattr_t * attr)
00093 {
00094 
00095 
00096 
00097     return 0;
00098 }
00099 
00100 
00101 int pthread_mutex_destroy(pthread_mutex_t * mutex)
00102 {
00103 
00104 
00105 
00106     return 0;
00107 }
00108 
00109 int pthread_mutex_lock(pthread_mutex_t * mutex)
00110 {
00111 
00112 
00113 
00114 
00115     return 0;
00116 }
00117 
00118 
00119 int pthread_mutex_trylock(pthread_mutex_t * mutex)
00120 {
00121 
00122 
00123 
00124 
00125 
00126     return 0;
00127 }
00128 
00129 
00130 int pthread_mutex_unlock(pthread_mutex_t * mutex)
00131 {
00132 
00133 
00134 
00135 
00136     return 0;
00137 }
00138 
00139 int pthread_once(pthread_once_t * once_control, void (* init_routine)(void))
00140 {
00141 
00142 
00143 
00144 
00145     return 0;
00146 }
00147 
00148 
00149 /****************************************************************************
00150  *                                                                          *
00151  *                               TLS FUNCTIONS                              *
00152  *                                                                          *
00153  ****************************************************************************/
00154 
00155 int pthread_key_create(pthread_key_t * key, void (*destructor)(void*))
00156 {
00157 
00158 
00159 
00160 
00161 
00162 
00163 
00164     return 0;
00165 }
00166 
00167 void * pthread_getspecific(pthread_key_t key)
00168 {
00169 
00170 
00171 
00172     return NULL;
00173 }
00174 
00175 int pthread_setspecific(pthread_key_t key, const void *value)
00176 {
00177 
00178 
00179 
00180 
00181 
00182     return 0;
00183 }
00184 
00185 
00186 /****************************************************************************
00187  *                                                                          *
00188  *                              THREAD FUNCTIONS                            *
00189  *                                                                          *
00190  ****************************************************************************/
00191 
00192 int pthread_create(pthread_t * thread, const pthread_attr_t * attr,
00193                    void * (* start_routine)(void *), void * arg)
00194 {
00195 
00196 
00197 
00198     return 0;
00199 }
00200 
00201 int pthread_join(pthread_t thread, void ** value_ptr)
00202 {
00203 
00204 
00205 
00206 
00207 
00208 
00209 
00210 
00211     return 0;
00212 }
00213 
00214 
00215 
00216 

Generated on Mon Jul 17 01:36:11 2006 for IILC by  doxygen 1.4.6