Show
Ignore:
Timestamp:
08/27/08 22:02:39 (4 months ago)
Author:
frsyuki
Message:

lang/c/mpio: added mp::multiplex

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/c/mpio/trunk/mp/iothreads/timer.h

    r18311 r18340  
    2727 
    2828struct timer { 
    29         private: 
     29private: 
    3030        class timer_thread : public pthread_thread<timer_thread> { 
    3131        public: 
     
    5151        }; 
    5252 
    53         public: 
     53public: 
    5454        template <typename T> 
    5555        static void start(double interval_sec, void (*callback)(void*), T* obj) 
    5656        { 
    5757                iothreads::manager::add_thread<timer_thread>(interval_sec, 
    58                                 callback, 
    59                                 reinterpret_cast<void*>(obj)); 
     58                                callback, reinterpret_cast<void*>(obj)); 
    6059        } 
    6160};