summaryrefslogtreecommitdiff
path: root/engine/ithread.h
blob: ecc06452ce3ecf3d272a570dc1637f7b47e1aa56 (plain) (blame)
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
30
31
32
33
34
35
36
37
38
39
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $Workfile:     $
// $Date:         $
//
//-----------------------------------------------------------------------------
// $Log: $
//
// $NoKeywords: $
//=============================================================================//
#if !defined( ITHREAD_H )
#define ITHREAD_H
#ifdef _WIN32
#pragma once
#endif

// Typedef to point at member functions of CCDAudio
typedef void ( CCDAudio::*vfunc )( int param1, int param2 );

//-----------------------------------------------------------------------------
// Purpose: CD Audio thread processing
//-----------------------------------------------------------------------------
abstract_class IThread
{
public:
	virtual			~IThread( void ) { }

	virtual bool	Init( void ) = 0;
	virtual bool	Shutdown( void ) = 0;

	// Add specified item to thread for processing
	virtual bool	AddThreadItem( vfunc pfn, int param1, int param2 ) = 0;
};

extern IThread *thread;

#endif // ITHREAD_H