Simplify.

This commit is contained in:
Steve Checkoway
2004-09-07 12:49:49 +00:00
parent a50839e1d0
commit bdd4988829
2 changed files with 13 additions and 47 deletions
+5 -13
View File
@@ -3,10 +3,6 @@
#include "Threads.h"
#if defined(LINUX)
#define PID_BASED_THREADS
#endif
#include <pthread.h>
#include <semaphore.h>
@@ -15,16 +11,12 @@ class ThreadImpl_Pthreads: public ThreadImpl
public:
pthread_t thread;
#if defined(PID_BASED_THREADS)
/* Keep a list of child PIDs, so we can send them SIGKILL. This has an
/* Linux:
* Keep a list of child PIDs, so we can send them SIGKILL. This has an
* added bonus: if this is corrupted, we'll just send signals and they'll
* fail; we won't blow up (unless we're root). */
int pid;
#endif
#if defined(DARWIN)
uint64_t MachThreadHandle;
#endif
* fail; we won't blow up (unless we're root).
*/
uint64_t threadHandle;
/* These are only used during initialization. */
int (*m_pFunc)( void *pData );