mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
754 B
35 lines
754 B
//+---------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 2000.
|
|
//
|
|
// File: U H T H R E A D . H
|
|
//
|
|
// Contents: Threading support code
|
|
//
|
|
// Notes:
|
|
//
|
|
// Author: mbend 29 Sep 2000
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
class CWorkItem
|
|
{
|
|
public:
|
|
CWorkItem();
|
|
virtual ~CWorkItem();
|
|
|
|
HRESULT HrStart(BOOL bDeleteOnComplete);
|
|
protected:
|
|
virtual DWORD DwRun() = 0;
|
|
virtual ULONG GetFlags();
|
|
private:
|
|
CWorkItem(const CWorkItem &);
|
|
CWorkItem & operator=(const CWorkItem &);
|
|
|
|
BOOL m_bDeleteOnComplete;
|
|
|
|
static DWORD WINAPI DwThreadProc(void * pvParam);
|
|
};
|