Team Fortress 2 Source Code as on 22/4/2020
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.

38 lines
1.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //-----------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #if !defined( ITHREAD_H )
  14. #define ITHREAD_H
  15. #ifdef _WIN32
  16. #pragma once
  17. #endif
  18. // Typedef to point at member functions of CCDAudio
  19. typedef void ( CCDAudio::*vfunc )( int param1, int param2 );
  20. //-----------------------------------------------------------------------------
  21. // Purpose: CD Audio thread processing
  22. //-----------------------------------------------------------------------------
  23. abstract_class IThread
  24. {
  25. public:
  26. virtual ~IThread( void ) { }
  27. virtual bool Init( void ) = 0;
  28. virtual bool Shutdown( void ) = 0;
  29. // Add specified item to thread for processing
  30. virtual bool AddThreadItem( vfunc pfn, int param1, int param2 ) = 0;
  31. };
  32. extern IThread *thread;
  33. #endif // ITHREAD_H