| 38 | #define DONT_RESCHEDULE 0 |
| 39 | |
| 40 | class CallGenerationTask : public task { |
| 41 | public: |
| 42 | static void initialize(); |
| 43 | static void set_rate(double new_rate); |
| 44 | static void set_users(int new_users); |
| 45 | static void set_paused(bool paused); |
| 46 | static void free_user(int userId); |
| 47 | |
| 48 | bool run(); |
| 49 | void dump(); |
| 50 | |
| 51 | protected: |
| 52 | unsigned int wake(); |
| 53 | |
| 54 | private: |
| 55 | CallGenerationTask(); |
| 56 | virtual ~CallGenerationTask(); |
| 57 | |
| 58 | static class CallGenerationTask *instance; |
| 59 | static unsigned long calls_since_last_rate_change; |
| 60 | static unsigned long last_rate_change_time; |
| 61 | }; |
| 62 | |
| 63 | #endif |
nothing calls this directly
no outgoing calls
no test coverage detected