Use wpi::mutex instead of std::mutex. (#730)

This uses a priority-aware mutex on Linux platforms.

Fixes #729.
This commit is contained in:
Peter Johnson
2017-11-13 09:51:48 -08:00
committed by GitHub
parent 35d68d2a34
commit 4d559f3856
86 changed files with 491 additions and 839 deletions

View File

@@ -7,9 +7,8 @@
#pragma once
#include <mutex>
#include <llvm/StringRef.h>
#include <support/mutex.h>
#include "Base.h"
#include "Error.h"
@@ -115,7 +114,7 @@ class ErrorBase {
protected:
mutable Error m_error;
// TODO: Replace globalError with a global list of all errors.
static std::mutex _globalErrorMutex;
static wpi::mutex _globalErrorMutex;
static Error _globalError;
};