2 * AtmoThread.h: Base thread class for all threads inside AtmoWin
5 * See the README.txt file for copyright information and how to reach the author(s).
10 #define _AtmoThread_h_
14 #if defined(_ATMO_VLC_PLUGIN_)
15 // use threading stuff from videolan!
16 # include <vlc_common.h>
17 # include <vlc_threads.h>
26 #if defined(_ATMO_VLC_PLUGIN_)
28 vlc_mutex_t m_TerminateLock;
29 vlc_cond_t m_TerminateCond;
30 vlc_object_t *m_pOwner;
31 ATMO_BOOL m_HasThread;
32 vlc_thread_t m_Thread;
38 HANDLE m_hTerminateEvent;
42 volatile ATMO_BOOL m_bTerminated;
46 #if defined(_ATMO_VLC_PLUGIN_)
47 static void *ThreadProc(void *);
49 static DWORD WINAPI ThreadProc(LPVOID lpParameter);
53 virtual DWORD Execute(void);
54 ATMO_BOOL ThreadSleep(DWORD millisekunden);
57 #if defined(_ATMO_VLC_PLUGIN_)
58 CThread(vlc_object_t *pOwner);
63 virtual ~CThread(void);