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.
5 #include "rlz/win/lib/lib_mutex.h"
8 #include "base/win/windows_version.h"
12 const long kTimeoutMs
= 5000L;
13 const wchar_t kMutexName
[] = L
"{A946A6A9-917E-4949-B9BC-6BADA8C7FD63}";
19 LibMutex::LibMutex() : acquired_(false), mutex_(NULL
) {
20 mutex_
= CreateMutex(NULL
, FALSE
, kMutexName
);
22 acquired_
= (WAIT_OBJECT_0
== WaitForSingleObject(mutex_
, kTimeoutMs
));
25 LibMutex::~LibMutex() {
32 } // namespace rlz_lib