/*! ========================================================================
** Extended Template and Library
** Thread Abstraction Class Implementation
-** $Id: _thread.h,v 1.1.1.1 2005/01/04 01:31:48 darco Exp $
+** $Id$
**
** Copyright (c) 2002 Robert B. Quattlebaum Jr.
**
(*references)++;
return *this;
}
-
+
void start(void)
{
references = new int;
pthread_cancel(thread);
pthread_join(thread,&exit_status);
}
-
+
static void TestStop()
{
pthread_testcancel();
}
-
+
static void SyncStop()
{
int i;
unsigned long thread;
HANDLE handle;
int *references;
-
+
entrypoint_return (THREAD_ENTRYPOINT *entrypoint)(void *);
-
+
void *context;
-
+
HDC hdc;
HGLRC hglrc;
-
+
static entrypoint_return THREAD_ENTRYPOINT thread_prefix(void*data)
{
Thread *thread=(Thread *)data;
-
+
if(thread->hglrc)
wglMakeCurrent(thread->hdc, thread->hglrc);
(*references)++;
return *this;
}
-
+
void start(void)
{
references = new int;
{
delete references;
references=NULL;
-
+
TerminateThread(handle, FALSE);
}
-
+
int wait(void)
{
if(handle)
}
return 0;
}
-
+
static void TestStop()
{
}
-
+
static void SyncStop()
{
}