summaryrefslogtreecommitdiff
path: root/AK/ScopeGuard.h
AgeCommit message (Collapse)Author
2020-01-18Meta: Add license header to source filesAndreas Kling
As suggested by Joshua, this commit adds the 2-clause BSD license as a comment block to the top of every source file. For the first pass, I've just added myself for simplicity. I encourage everyone to add themselves as copyright holders of any file they've added or modified in some significant way. If I've added myself in error somewhere, feel free to replace it with the appropriate copyright holder instead. Going forward, all new source files should include a license header.
2020-01-13AK: Add ArmedScopeGuard, a scope guard that can be disarmedAndrew Kaster
2019-06-18AK: ScopeGuard.h needs StdLibExtras.hAndreas Kling
2019-06-07AK: Add a ScopeGuard helper that invokes a callback when destroyed.Andreas Kling
This is useful when you want to ensure some little thing happens when you exit a certain scope. This patch makes use of it in LibC's netdb code to make sure we close the connection to the LookupServer.