1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-12 05:33:36 -04:00
elinks/src/ecmascript/timer.h
2021-12-02 17:02:00 +01:00

29 lines
421 B
C++

#ifndef EL__ECMASCRIPT_TIMER_H
#define EL__ECMASCRIPT_TIMER_H
#include <map>
struct timer;
extern std::map<struct timer *, bool> map_timer;
inline void
add_to_map_timer(struct timer *timer)
{
map_timer[timer] = true;
}
inline void
del_from_map_timer(struct timer *timer)
{
map_timer.erase(timer);
}
inline bool
found_in_map_timer(struct timer *timer)
{
return map_timer.find(timer) != map_timer.end();
}
#endif