mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #11391 from maciejbocianski/user_event_fix
EvenQueue: fix template functions passing UserAllocatedEvent<...> as argument.pull/11400/head
commit
525d3cc2d1
|
@ -167,8 +167,8 @@ public:
|
||||||
* @return true if event was successfully cancelled
|
* @return true if event was successfully cancelled
|
||||||
* false if event was not cancelled (invalid queue or executing already begun)
|
* false if event was not cancelled (invalid queue or executing already begun)
|
||||||
*/
|
*/
|
||||||
template<typename... Args>
|
template<typename F, typename A>
|
||||||
bool cancel(UserAllocatedEvent<Args...> *event)
|
bool cancel(UserAllocatedEvent<F, A> *event)
|
||||||
{
|
{
|
||||||
if (event->_equeue != &_equeue) {
|
if (event->_equeue != &_equeue) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -213,8 +213,8 @@ public:
|
||||||
* Undefined if id is invalid.
|
* Undefined if id is invalid.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
template<typename... Args>
|
template<typename F, typename A>
|
||||||
int time_left(UserAllocatedEvent<Args...> *event)
|
int time_left(UserAllocatedEvent<F, A> *event)
|
||||||
{
|
{
|
||||||
if (event && event->_equeue != &_equeue) {
|
if (event && event->_equeue != &_equeue) {
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue