X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2FETL%2F_thread.h;h=8f70be8ae7e0f58ea3ed8347fc6b5446962ed763;hb=4cfe2b68ebd2556f9926965dcea2ca8f3fc050ea;hp=6939ee3c40c1a8d2214c880d3cc89c1831aa70e5;hpb=b3016b249333ac0ab0008d8c6c4d9029b2ff30c9;p=synfig.git diff --git a/ETL/trunk/ETL/_thread.h b/ETL/trunk/ETL/_thread.h index 6939ee3..8f70be8 100644 --- a/ETL/trunk/ETL/_thread.h +++ b/ETL/trunk/ETL/_thread.h @@ -1,7 +1,7 @@ /*! ======================================================================== ** 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. ** @@ -108,7 +108,7 @@ public: (*references)++; return *this; } - + void start(void) { references = new int; @@ -125,12 +125,12 @@ public: pthread_cancel(thread); pthread_join(thread,&exit_status); } - + static void TestStop() { pthread_testcancel(); } - + static void SyncStop() { int i; @@ -307,18 +307,18 @@ private: 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); @@ -356,7 +356,7 @@ public: (*references)++; return *this; } - + void start(void) { references = new int; @@ -379,10 +379,10 @@ public: { delete references; references=NULL; - + TerminateThread(handle, FALSE); } - + int wait(void) { if(handle) @@ -392,11 +392,11 @@ public: } return 0; } - + static void TestStop() { } - + static void SyncStop() { }