Skip to content

Commit

Permalink
Document correctness of HandlePtr
Browse files Browse the repository at this point in the history
  • Loading branch information
nyanpasu64 committed Jul 7, 2023
1 parent 4a20814 commit 0fa4c33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/utils/handle_ptr.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ struct CloseHandleT {

/// HANDLE is void*, so unique_ptr<void, CloseHandleT> is a RAII HANDLE.
using HandlePtr = std::unique_ptr<void, CloseHandleT>;
// https://learn.microsoft.com/en-us/windows/win32/api/synchapi/nf-synchapi-createeventa
// >If the function fails, the return value is NULL.

0 comments on commit 0fa4c33

Please sign in to comment.