mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
29 lines
421 B
C++
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
|