00001 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*- 00002 00003 // -- BEGIN LICENSE BLOCK ---------------------------------------------- 00004 // This file is part of FZIs ic_workspace. 00005 // 00006 // This program is free software licensed under the LGPL 00007 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3). 00008 // You can find a copy of this license in LICENSE folder in the top 00009 // directory of the source code. 00010 // 00011 // © Copyright 2014 FZI Forschungszentrum Informatik, Karlsruhe, Germany 00012 // 00013 // -- END LICENSE BLOCK ------------------------------------------------ 00014 00015 //---------------------------------------------------------------------- 00026 //---------------------------------------------------------------------- 00027 #ifndef ICL_CORE_LOGGING_THREAD_IMPL_WIN32_H_INCLUDED 00028 #define ICL_CORE_LOGGING_THREAD_IMPL_WIN32_H_INCLUDED 00029 00030 #include <Process.h> 00031 #include <Windows.h> 00032 00033 #include <icl_core/os_thread.h> 00034 00035 #include "ThreadImpl.h" 00036 00037 namespace icl_core { 00038 namespace logging { 00039 00040 class Thread; 00041 00042 class ThreadImplWin32 : public ThreadImpl, protected virtual icl_core::Noncopyable 00043 { 00044 public: 00045 ThreadImplWin32(Thread *thread, icl_core::ThreadPriority priority); 00046 virtual ~ThreadImplWin32(); 00047 00048 virtual void join(); 00049 virtual bool start(); 00050 00051 private: 00052 static DWORD WINAPI runThread(void *arg); 00053 00054 HANDLE m_thread_handle; 00055 unsigned long m_thread_id; 00056 Thread *m_thread; 00057 }; 00058 00059 } 00060 } 00061 00062 #endif