myThread copy 2 -...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
#if !defined _myThread_H_ #define _myThread_H_ # #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 #define _WIN32_WINNT 0x0400 # #include <windows.h> #include <string> using namespace std; u #include ". .\mySemaphore\mySemaphore.h" #include ". .\myEvent\myEvent.h" # class myThread { public: p myThread( LPTHREAD_START_ROUTINE pThreadFunc, // address of thread callback LPVOID pThreadFuncParameter=NULL, // address of callback's parameter, DWORD exeFlags=0, // creation flag DWORD sSize=0, // stack size BOOL inheritable=FALSE // inheritable ); ) ~myThread(); public: p void execute(); void waitForThreadToFinish(); void suspend(); void resume(); void setThreadPriority(int); int getThreadPriority(); void disablePriorityBoost(BOOL bDisable); BOOL isPriorityBoostDisabled(); B void setProcessorMask(DWORD); void setIdealProcessor(DWORD); v LPVOID getThreadArgument() { return threadArgument; } DWORD getExitCode(); DWORD getThreadId(); void getThreadStatistics(LPFILETIME,LPFILETIME,LPFILETIME,LPFILETIME);
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/27/2011 for the course COMPUTER 101 taught by Professor Bobthebuilder during the Spring '11 term at Columbia College.

Page1 / 3

myThread copy 2 -...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online