Bike service
Fork of BLE_API by
Diff: ble/CallChainOfFunctionPointersWithContext.h
- Revision:
- 1178:f9060dc8c5ab
- Parent:
- 1157:e1ea38b576c6
- Child:
- 1180:4ab722f8dca0
--- a/ble/CallChainOfFunctionPointersWithContext.h Wed Apr 06 19:15:24 2016 +0100 +++ b/ble/CallChainOfFunctionPointersWithContext.h Wed Apr 06 19:15:26 2016 +0100 @@ -121,6 +121,9 @@ * FunctionPointerWithContext to detach from this callchain. * * @return true if a function pointer has been detached and false otherwise. + * + * @note It is safe to remove a function pointer while the chain is + * traversed by call(ContextType). */ bool detach(const FunctionPointerWithContext<ContextType>& toDetach) { pFunctionPointerWithContext_t current = chainHead;