From a9ca16169016acf2d0ae615f4c75b6fef7ece3ea Mon Sep 17 00:00:00 2001 From: Dmitry Fleytman Date: Sun, 16 Feb 2014 18:11:32 +0200 Subject: [PATCH] UsbDk: Introduce entry removal function for CWdmList Signed-off-by: Dmitry Fleytman --- UsbDk/UsbDkUtil.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/UsbDk/UsbDkUtil.h b/UsbDk/UsbDkUtil.h index 37417ea..7f38e38 100644 --- a/UsbDk/UsbDkUtil.h +++ b/UsbDk/UsbDkUtil.h @@ -116,6 +116,13 @@ public: return GetCount(); } + void Remove(TEntryType *Entry) + { + CLockedContext LockedContext(*this); + RemoveEntryList(Entry->GetListEntry()); + CounterDecrement(); + } + template void ForEachDetached(TFunctor Functor) {