ifc_component_sync.h 653 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include "foundation/dispatch.h"
  3. // {667F8818-AECD-4017-80EE-C43E096E68C1}
  4. static const GUID ifc_component_sync_interface_guid =
  5. { 0x667f8818, 0xaecd, 0x4017, { 0x80, 0xee, 0xc4, 0x3e, 0x9, 0x6e, 0x68, 0xc1 } };
  6. class ifc_component_sync : public Wasabi2::Dispatchable
  7. {
  8. protected:
  9. ifc_component_sync() : Wasabi2::Dispatchable(DISPATCHABLE_VERSION) {}
  10. ~ifc_component_sync() {}
  11. public:
  12. static GUID GetInterfaceGUID() { return ifc_component_sync_interface_guid; }
  13. int Wait(size_t count) { return ComponentSync_Wait(count); }
  14. enum
  15. {
  16. DISPATCHABLE_VERSION=0,
  17. };
  18. private:
  19. virtual int WASABICALL ComponentSync_Wait(size_t count)=0;
  20. };