Migrating atomic ops to std::atomic where possible and poly.

This commit is contained in:
Ben Vanik
2014-07-12 17:48:54 -07:00
parent bf882714d0
commit 9b78dd977b
18 changed files with 174 additions and 139 deletions

View File

@@ -10,6 +10,8 @@
#ifndef XENIA_KERNEL_XBOXKRNL_XOBJECT_H_
#define XENIA_KERNEL_XBOXKRNL_XOBJECT_H_
#include <atomic>
#include <xenia/kernel/kernel_state.h>
#include <xenia/xbox.h>
@@ -87,8 +89,8 @@ protected:
KernelState* kernel_state_;
private:
volatile int32_t handle_ref_count_;
volatile int32_t pointer_ref_count_;
std::atomic<int32_t> handle_ref_count_;
std::atomic<int32_t> pointer_ref_count_;
Type type_;
X_HANDLE handle_;