Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Side by Side Diff: rlz/win/lib/lib_mutex.h

Issue 10642009: Add a regenerate button to regenerate the password in Windows. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Sync and Merge. Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « rlz/win/dll/exports.cc ('k') | rlz/win/lib/lib_mutex.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 //
5 // Mutex to guarantee serialization of RLZ key accesses.
6
7 #ifndef RLZ_WIN_LIB_LIB_MUTEX_H_
8 #define RLZ_WIN_LIB_LIB_MUTEX_H_
9
10 #include <windows.h>
11
12 namespace rlz_lib {
13
14 class LibMutex {
15 public:
16 LibMutex();
17 ~LibMutex();
18
19 bool failed(void) { return !acquired_; }
20
21 private:
22 bool acquired_;
23 HANDLE mutex_;
24 };
25
26 } // namespace rlz_lib
27
28 #endif // RLZ_WIN_LIB_LIB_MUTEX_H_
OLDNEW
« no previous file with comments | « rlz/win/dll/exports.cc ('k') | rlz/win/lib/lib_mutex.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698