some more code on this project ( i don't know what i do )
This commit is contained in:
		| @@ -19,12 +19,46 @@ using Mutex = interface::XFMutex;       // Rename XFMutex interface class to Mut | ||||
| // Note: The implementation is done here because only in this file the real XFDispatcher | ||||
| //       class is known (port specific class). An instance of the XFDispatcher class is | ||||
| //       returned by the 'interface::XFDispatcher' class. | ||||
| interface::XFDispatcher * interface::XFDispatcher::getInstance() | ||||
| { | ||||
| interface::XFDispatcher * interface::XFDispatcher::getInstance() { | ||||
|     static ::XFDispatcher dispatcher; | ||||
|     return &dispatcher; | ||||
| } | ||||
|  | ||||
| // TODO: Implement code for XFDispatcher class | ||||
|  | ||||
| XFDispatcher::XFDispatcher() { | ||||
|  | ||||
| } | ||||
|  | ||||
| XFDispatcher::~XFDispatcher() { | ||||
|  | ||||
| } | ||||
|  | ||||
| void XFDispatcher::dispatchEvent(const XFEvent *pEvent) const { | ||||
|  | ||||
| } | ||||
|  | ||||
| void XFDispatcher::pushEvent(XFEvent *pEvent) { | ||||
|     events_.push(pEvent); | ||||
| } | ||||
|  | ||||
| void XFDispatcher::scheduleTimeout(int timeoutId, int interval, interface::XFBehavior *pBehavior) { | ||||
|     XFTimeoutManager* timeoutManager = XFTimeoutManager::getInstance(); | ||||
|     timeoutManager->scheduleTimeout(timeoutId, interval, pBehavior); | ||||
| } | ||||
|  | ||||
| void XFDispatcher::unscheduleTimeout(int timeoutId, interface::XFBehavior *pBehavior) { | ||||
|     XFTimeoutManager* timeoutManager = XFTimeoutManager::getInstance(); | ||||
|     timeoutManager->unscheduleTimeout(timeoutId, pBehavior); | ||||
| } | ||||
|  | ||||
| void XFDispatcher::executeOnce() { | ||||
|  | ||||
| } | ||||
|  | ||||
| int XFDispatcher::execute(const void *param) { | ||||
|  | ||||
| } | ||||
|  | ||||
|  | ||||
| #endif // USE_XF_COMMON_DISPATCHER_CLASS | ||||
|   | ||||
		Reference in New Issue
	
	Block a user