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.
29 lines
683 B
29 lines
683 B
// Gemplus (C) 2000
|
|
// Version 1.0
|
|
// Author: Sergey Ivanov
|
|
// Date of creation - 18.05.2000
|
|
// Change log:
|
|
//
|
|
#ifndef SEM_INT
|
|
#define SEM_INT
|
|
#include "generic.h"
|
|
|
|
class CSemaphore;
|
|
#pragma PAGEDCODE
|
|
class CSemaphore
|
|
{
|
|
public:
|
|
NTSTATUS m_Status;
|
|
SAFE_DESTRUCTORS();
|
|
virtual VOID dispose(){self_delete();};
|
|
protected:
|
|
CSemaphore(){};
|
|
virtual ~CSemaphore() {};
|
|
public:
|
|
|
|
virtual VOID initialize(IN PRKSEMAPHORE Semaphore, IN LONG Count, IN LONG Limit) = 0;
|
|
virtual LONG release(IN PRKSEMAPHORE Semaphore,IN KPRIORITY Increment,IN LONG Adjustment,IN BOOLEAN Wait) = 0;
|
|
virtual LONG getState(IN PRKSEMAPHORE Semaphore) = 0;
|
|
};
|
|
|
|
#endif//SEMAPHORE
|