aboutsummaryrefslogtreecommitdiff
path: root/opensslthread.h
blob: 202beebccbd25695f8c2b0af31ed8d802f999faa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef _INCLUDE_SOURCEMOD_EXTENSION_OPENSSLTHREAD_H_
#define _INCLUDE_SOURCEMOD_EXTENSION_OPENSSLTHREAD_H_

#include "extension.h"
#include "opensslmanager.h"

class OpensslThread : public IThread
{
	friend class OpensslManager;

public:
	OpensslThread(void *_data, OpensslThread_Type type);
	~OpensslThread();

public:
	void RunThread(IThreadHandle *pHandle);
	void OnTerminate(IThreadHandle *pHandle, bool cancel);

private:
	void RunFileHash();

private:
	OpensslThread_Type type;
	void *data;
};


#endif