Lines Matching defs:handle
28 // - IsValid() method can tolerate multiple invalid handle values such as NULL
32 // be called after stashing a handle in a GenericScopedHandle object. Doing
41 explicit GenericScopedHandle(Handle handle) : handle_(Traits::NullHandle()) {
42 Set(handle);
60 void Set(Handle handle) {
61 if (handle_ != handle) {
66 if (Traits::IsHandleValid(handle)) {
67 handle_ = handle;
82 // Explicitly closes the owned handle.
106 // Closes the handle.
107 static bool CloseHandle(HANDLE handle);
109 // Returns true if the handle value is valid.
110 static bool IsHandleValid(HANDLE handle) {
111 return handle != NULL && handle != INVALID_HANDLE_VALUE;
114 // Returns NULL handle value.
128 static void StartTracking(HANDLE handle,
132 static void StopTracking(HANDLE handle,
148 static void StartTracking(HANDLE handle,
152 static void StopTracking(HANDLE handle,
170 // This should be called whenever the OS is closing a handle, if extended
171 // verification of improper handle closing is desired. If |handle| is being
172 // tracked by the handle verifier and ScopedHandle is not the one closing it,
174 void OnHandleBeingClosed(HANDLE handle);