~ubuntu-branches/debian/jessie/scummvm/jessie

« back to all changes in this revision

Viewing changes to backends/timer/default/default-timer.h

  • Committer: Package Import Robot
  • Author(s): Moritz Muehlenhoff
  • Date: 2011-11-05 10:29:43 UTC
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: package-import@ubuntu.com-20111105102943-zfm3dhlvy5b01u7v
Tags: upstream-1.4.0
ImportĀ upstreamĀ versionĀ 1.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 * You should have received a copy of the GNU General Public License
18
18
 * along with this program; if not, write to the Free Software
19
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
 
 *
21
 
 * $URL$
22
 
 * $Id$
23
20
 */
24
21
 
25
22
#ifndef BACKENDS_TIMER_DEFAULT_H
26
23
#define BACKENDS_TIMER_DEFAULT_H
27
24
 
 
25
#include "common/str.h"
 
26
#include "common/hash-str.h"
28
27
#include "common/timer.h"
29
28
#include "common/mutex.h"
30
29
 
32
31
 
33
32
class DefaultTimerManager : public Common::TimerManager {
34
33
private:
 
34
        typedef Common::HashMap<Common::String, TimerProc, Common::IgnoreCase_Hash, Common::IgnoreCase_EqualTo> TimerSlotMap;
 
35
 
35
36
        Common::Mutex _mutex;
36
37
        void *_timerHandler;
37
38
        TimerSlot *_head;
 
39
        TimerSlotMap _callbacks;
38
40
 
39
41
public:
40
42
        DefaultTimerManager();
41
43
        virtual ~DefaultTimerManager();
42
 
        virtual bool installTimerProc(TimerProc proc, int32 interval, void *refCon);
 
44
        virtual bool installTimerProc(TimerProc proc, int32 interval, void *refCon, const Common::String &id);
43
45
        virtual void removeTimerProc(TimerProc proc);
44
46
 
45
47
        /**