Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

vipl_win_thread.h File Reference

#include "vipl.h"

Go to the source code of this file.

Data Structures

struct  timespec
struct  threadinfo_t
struct  vipl_win_thread_t

Typedefs

typedef threadinfo_t threadinfo_t
typedef vipl_win_thread_t vipl_win_thread_t

Functions

int vipl_win_thread_create (vipl_win_thread_t *thread, void *(*start_routine)(void *), void *arg)
int vipl_win_thread_join (vipl_win_thread_t t, void **thread_return)
void vipl_win_thread_exit (void *retval)
VIP_ENTRY_POINT unsigned long vipl_win_thread_self (void)


Detailed Description

The VI-GM thread include file for Win32.

Definition in file vipl_win_thread.h.


Typedef Documentation

typedef struct threadinfo_t threadinfo_t
 

This structure contains the information about the routine executed by a thread in the Windows port (Win32 threads suck).

typedef struct vipl_win_thread_t vipl_win_thread_t
 

This structure describes a thread abstraction in the Windows port (and we all know that Win32 threads suck).


Function Documentation

int vipl_win_thread_create vipl_win_thread_t thread,
void *(*)(void *)  start_routine,
void *  arg
 

This function create a new thread (Windows port).

Return values:
0 Success.
-1 Failure.
Parameters:
thread (IN) The thread structure in the Windows port.
start_routine (IN) The routine executed by the thread.
arg (IN) The argument passed to the thread at creation time.
See also:
VIP_THREAD_CREATE
Author:
Eugene Chun
Version:
1.0

Definition at line 80 of file vipl_win_thread.c.

References threadinfo_t::arg, threadinfo_t::start_routine, vipl_win_thread_t::thread, vipl_win_thread_t::ti, vipl_win_init(), and vipl_win_thread_create_helper().

int vipl_win_thread_join vipl_win_thread_t  t,
void **  thread_return
 

This function waits for another thread to exit (Windows port).

Return values:
0 Success.
-1 Failure.
Parameters:
t (IN) The handle to the thread to join.
thread_return (OUT) The return code of the terminated thread.
See also:
VIP_THREAD_JOIN
Author:
Eugene Chun
Version:
1.0

Definition at line 114 of file vipl_win_thread.c.

References vipl_win_thread_t::thread, and vipl_win_thread_t::ti.

void vipl_win_thread_exit void *  retval  ) 
 

This function terminates the current thread (Windows port).

Parameters:
retval (IN) The return value return to the parent process when the tread is terminating.
See also:
VIP_THREAD_EXIT
Author:
Eugene Chun
Version:
1.0

Definition at line 135 of file vipl_win_thread.c.

VIP_ENTRY_POINT unsigned long vipl_win_thread_self void   ) 
 

This function returns the ID of the current thread (Windows port).

Returns:
The ID of the current thread.
See also:
VIP_THREAD_SELF
Author:
Eugene Chun
Version:
1.0

Definition at line 153 of file vipl_win_thread.c.

VI-GM-1.3 by Myricom © 1997-2006. Documentation generated on 20 May 2006 by doxygen 1.4.4.