IXWebSocket/ixwebsocket/IXSelectInterrupt.h

28 lines
520 B
C
Raw Normal View History

2019-03-14 18:37:38 -07:00
/*
* IXSelectInterrupt.h
* Author: Benjamin Sergeant
* Copyright (c) 2019 Machine Zone, Inc. All rights reserved.
*/
#pragma once
#include <stdint.h>
#include <string>
namespace ix
{
2019-05-30 08:46:50 -07:00
class SelectInterrupt
{
2019-03-14 18:37:38 -07:00
public:
SelectInterrupt();
virtual ~SelectInterrupt();
virtual bool init(std::string& errorMsg);
virtual bool notify(uint64_t value);
virtual bool clear();
virtual uint64_t read();
2019-03-15 11:41:57 -07:00
virtual int getFd() const;
2019-03-14 18:37:38 -07:00
};
2019-05-30 08:46:50 -07:00
} // namespace ix