checking in the recent efforts at optimizing clam
[feisty_meow.git] / nucleus / library / processes / ethread.h
index 9adab46514ce7a940a405f3a540a612485e3570a..64200f3a3c3cf8fec4c3d5a72289542537cebffe 100644 (file)
 
 #include <signal.h>
 
-#ifndef __APPLE__
-#ifdef __UNIX__
-//  typedef long unsigned int pthread_t;
-#endif
-#endif
-
 namespace processes {
 
 //! Provides a platform-independent object for adding threads to a program.
@@ -154,24 +148,24 @@ private:
   bool _thread_active;  //!< is the thread currently performing?
   bool _stop_thread;  //!< true if the thread should stop now.
   void *_data;  //!< holds the thread's link back to whatever.
-#ifdef __UNIX__
+//#ifndef _MSC_VER
   pthread_t *_handle;  //!< thread structure for our thread.
-#elif defined(__WIN32__)
-  uintptr_t _handle;  //!< thread handle for the active thread, or zero.
-#endif
+//#else
+  //uintptr_t _handle;  //!< thread handle for the active thread, or zero.
+//#endif
   int _sleep_time;  //!< threads perform at roughly this interval.
   bool _periodic;  //!< true if this thread should run repeatedly.
   timely::time_stamp *_next_activation;  //!< the next time perform_activity is called.
   timed_thread_types _how;  //!< how is the period evaluated?
 
   // the OS level thread functions.
-#ifdef __UNIX__
+//#ifndef _MSC_VER
   static void *periodic_thread_driver(void *hidden_pointer);
   static void *one_shot_thread_driver(void *hidden_pointer);
-#elif defined(__WIN32__)
-  static void periodic_thread_driver(void *hidden_pointer);
-  static void one_shot_thread_driver(void *hidden_pointer);
-#endif
+//#else
+  //static void periodic_thread_driver(void *hidden_pointer);
+  //static void one_shot_thread_driver(void *hidden_pointer);
+//#endif
 
   // forbidden.
   ethread(const ethread &);