util/BindMethod: new utility class for callbacks

Replaces the old BoundMethod template.
This commit is contained in:
Max Kellermann
2016-06-17 17:00:05 +02:00
parent bdd0c3686d
commit 863f4d8366
8 changed files with 206 additions and 92 deletions
+1 -1
View File
@@ -32,5 +32,5 @@ MaskMonitor::RunDeferred()
{
const unsigned mask = pending_mask.exchange(0);
if (mask != 0)
HandleMask(mask);
callback(mask);
}