Switching to xe::mutex.

This commit is contained in:
Ben Vanik
2015-05-24 23:16:43 -07:00
parent 814ec82ad4
commit f5a2b85d42
31 changed files with 133 additions and 108 deletions

View File

@@ -122,7 +122,7 @@ void* X64CodeCache::PlaceCode(uint32_t guest_address, void* machine_code,
uint8_t* unwind_entry_address = nullptr;
size_t unwind_table_slot = 0;
{
std::lock_guard<std::mutex> allocation_lock(allocation_mutex_);
std::lock_guard<xe::mutex> allocation_lock(allocation_mutex_);
low_mark = generated_code_offset_;

View File

@@ -17,6 +17,8 @@
#include <mutex>
#include <vector>
#include "xenia/base/mutex.h"
namespace xe {
namespace cpu {
namespace backend {
@@ -54,7 +56,7 @@ class X64CodeCache {
// Must be held when manipulating the offsets or counts of anything, to keep
// the tables consistent and ordered.
std::mutex allocation_mutex_;
xe::mutex allocation_mutex_;
// Value that the indirection table will be initialized with upon commit.
uint32_t indirection_default_value_;