acl/lib_fiber/cpp/include/fiber/fiber_event.hpp

40 lines
800 B
C++
Raw Normal View History

#pragma once
struct ACL_FIBER_EVENT;
namespace acl {
2017-11-24 11:25:05 +08:00
/**
* 线线/
*
*/
class fiber_event
{
public:
fiber_event(void);
~fiber_event(void);
2017-11-24 11:25:05 +08:00
/**
*
* @return {bool} true
*/
bool wait(void);
2017-11-24 11:25:05 +08:00
/**
*
* @return {bool} true
*/
bool trywait(void);
/**
*
* @return {bool} true
*/
bool notify(void);
private:
ACL_FIBER_EVENT* event_;
};
} // namespace acl