Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_API by
Diff: ble/FunctionPointerWithContext.h
- Revision:
- 1049:d99774db03b4
- Parent:
- 1048:efb29faf12fc
- Child:
- 1052:b55e1ad3e1b3
diff -r efb29faf12fc -r d99774db03b4 ble/FunctionPointerWithContext.h --- a/ble/FunctionPointerWithContext.h Mon Jan 11 08:51:28 2016 +0000 +++ b/ble/FunctionPointerWithContext.h Mon Jan 11 08:51:29 2016 +0000 @@ -94,6 +94,16 @@ } } + /** Same as above, workaround for mbed os FunctionPointer implementation. */ + void call(ContextType context) { + _caller(this, context); + + /* Propagate the call to next in the chain. */ + if (_next) { + _next->call(context); + } + } + /** * Set up an external FunctionPointer as a next in the chain of related * callbacks. Invoking call() on the head FunctionPointer will invoke all