/*
* Copyright 1995, 2000 Perforce Software. All rights reserved.
*
* This file is part of Perforce - the FAST SCM System.
*/
/*
* NtThreadList - Class supporting Threader::Reap for NT
*
* Public methods:
*
* NtThreadList::NtThreadList()
* NtThreadList::~NtThreadList()
*
* NtThreadList::AddThread()
* NtThreadList::RemoveThread()
* NtThreadList::GetThread()
*/
#ifndef NTTHDLIST_H__
#define NTTHDLIST_H__
class NtThreadList
{
struct NtThreadEntry {
void *key;
DWORD tid;
struct NtThreadEntry *next;
struct NtThreadEntry *prev;
} ;
public:
NtThreadList();
virtual ~NtThreadList();
void AddThread( void *k, DWORD tid );
int RemoveThread( void *k );
void SuspendThreads();
int Empty();
int GetThreadCount();
private:
NtThreadEntry *head;
CRITICAL_SECTION section;
int listSize;
};
#endif // NTTHDLIST_H__
| # | Change | User | Description | Committed | |
|---|---|---|---|---|---|
| #1 | 14945 | Newtopian |
Merging //guest/perforce_software/p4/... to //guest/Newtopian/p4/... |
||
| //guest/perforce_software/p4/2014.1/sys/ntthdlist.h | |||||
| #1 | 12188 | Matt Attaway | Move 'main' p4 into a release specific directory in prep for new releases | ||
| //guest/perforce_software/p4/sys/ntthdlist.h | |||||
| #1 | 9129 | Matt Attaway | Initial commit of the 2014.1 p4/p4api source code | ||