]> git.tdb.fi Git - libs/core.git/blobdiff - source/time/timer.h
Select RawTime definition based on compiler, not platform
[libs/core.git] / source / time / timer.h
index 935df0323debc6c25dbb6e1bb8f62c54f12d67db..26ebf64a36d1725133934ef8fd9f282eca4da24d 100644 (file)
@@ -1,14 +1,14 @@
 /* $Id$
 
 This file is part of libmspcore     
-Copyright © 2006  Mikko Rasa, Mikkosoft Productions
+Copyright © 2006, 2009  Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
 #ifndef MSP_TIME_TIMER_H_
 #define MSP_TIME_TIMER_H_
 
-#include <set>
+#include <vector>
 #include <sigc++/sigc++.h>
 #include "../core/mutex.h"
 #include "../core/semaphore.h"
@@ -53,7 +53,7 @@ private:
                bool operator<(const SlotProxy &) const;
        };
 
-       std::set<SlotProxy> slots;
+       std::vector<SlotProxy> slots;
        Semaphore sem;
        Mutex mutex;
 
@@ -84,7 +84,7 @@ public:
        Note: If there are no active timers when a blocking tick is executed, it
        won't return until a timer is added from another thread.
        */
-       void tick(bool block=true);
+       void tick(bool block = true);
 
        TimeStamp get_next_timeout() const;
 };