Lines Matching refs:handle
31 // - IsValid() method can tolerate multiple invalid handle values such as NULL
42 explicit GenericScopedHandle(Handle handle) : handle_(Traits::NullHandle()) {
43 Set(handle);
67 void Set(Handle handle) {
68 if (handle_ != handle) {
71 if (Traits::IsHandleValid(handle)) {
72 handle_ = handle;
73 Verifier::StartTracking(handle, this, BASE_WIN_GET_CALLER,
98 // Explicitly closes the owned handle.
122 // Closes the handle.
123 static bool CloseHandle(HANDLE handle) {
124 return ::CloseHandle(handle) != FALSE;
127 // Returns true if the handle value is valid.
128 static bool IsHandleValid(HANDLE handle) {
129 return handle != NULL && handle != INVALID_HANDLE_VALUE;
132 // Returns NULL handle value.
146 static void StartTracking(HANDLE handle, const void* owner,
148 static void StopTracking(HANDLE handle, const void* owner,
160 static void StartTracking(HANDLE handle, const void* owner,
162 static void StopTracking(HANDLE handle, const void* owner,