all test done on STM
This commit is contained in:
parent
a86d9b1dfc
commit
a1960d7f3b
@ -20,9 +20,10 @@ bool XFEventQueue::empty() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool XFEventQueue::push(const XFEvent *pEvent, bool fromISR) {
|
bool XFEventQueue::push(const XFEvent *pEvent, bool fromISR) {
|
||||||
if(!fromISR) mutex_.lock();
|
(void) fromISR;
|
||||||
|
mutex_.lock();
|
||||||
queue_.push(pEvent);
|
queue_.push(pEvent);
|
||||||
if(!fromISR) mutex_.unlock();
|
mutex_.unlock();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -37,8 +38,7 @@ void XFEventQueue::pop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool XFEventQueue::pend()
|
bool XFEventQueue::pend() {
|
||||||
{
|
|
||||||
// Method cannot be used in an IDF! Waiting within
|
// Method cannot be used in an IDF! Waiting within
|
||||||
// this method would block the whole XF
|
// this method would block the whole XF
|
||||||
return false;
|
return false;
|
||||||
|
@ -43,9 +43,9 @@ int XF::exec(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
int XF::execOnce() {
|
int XF::execOnce() {
|
||||||
int foo;
|
interface::XFDispatcher::getInstance()->executeOnce();
|
||||||
foo = interface::XFDispatcher::getInstance()->execute();
|
isRunning_ = true;
|
||||||
return foo;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool XF::isRunning() {
|
bool XF::isRunning() {
|
||||||
|
Reference in New Issue
Block a user