
00001 /******************************************************** 00002 * Myricom VI-GM networking software and documentation * 00003 * Copyright (c) 2001 by Myricom, Inc. * 00004 * All rights reserved. * 00005 * See the file `COPYING' for copyright notice. * 00006 ********************************************************/ 00007 00008 #ifndef VIPL_WIN_THREAD_H 00009 #define VIPL_WIN_THREAD_H 00010 00016 #include "vipl.h" 00017 00020 struct timespec { 00022 long tv_sec; 00024 long tv_nsec; 00025 }; 00026 00029 typedef struct threadinfo_t 00030 { 00032 void *(*start_routine)(void*); 00034 void *arg; 00035 } threadinfo_t; 00036 00039 typedef struct vipl_win_thread_t 00040 { 00042 HANDLE thread; 00044 threadinfo_t *ti; 00045 } vipl_win_thread_t; 00046 00048 int vipl_win_thread_create (vipl_win_thread_t *thread, 00049 void *(*start_routine)(void *), 00050 void *arg); 00052 int vipl_win_thread_join (vipl_win_thread_t t, void **thread_return); 00054 void vipl_win_thread_exit (void *retval); 00056 VIP_ENTRY_POINT unsigned long vipl_win_thread_self (void); 00057 00058 #endif
1.4.4.