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
|
||||
* false if event was not cancelled (invalid queue or executing already begun)
|
||||
*/
|
||||
template<typename... Args>
|
||||
bool cancel(UserAllocatedEvent<Args...> *event)
|
||||
template<typename F, typename A>
|
||||
bool cancel(UserAllocatedEvent<F, A> *event)
|
||||
{
|
||||
if (event->_equeue != &_equeue) {
|
||||
return false;
|
||||
|
@ -213,8 +213,8 @@ public:
|
|||
* Undefined if id is invalid.
|
||||
*
|
||||
*/
|
||||
template<typename... Args>
|
||||
int time_left(UserAllocatedEvent<Args...> *event)
|
||||
template<typename F, typename A>
|
||||
int time_left(UserAllocatedEvent<F, A> *event)
|
||||
{
|
||||
if (event && event->_equeue != &_equeue) {
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue