diff options
| author | 2015-01-31 22:56:59 -0200 | |
|---|---|---|
| committer | 2015-02-02 15:37:07 -0200 | |
| commit | 7725256f649719dcce2c50ea84e79d6199dd9a50 (patch) | |
| tree | d9266b5991cc7c6a2c9c6bc55f39dd9c71897d59 /src/core/hle/kernel/mutex.cpp | |
| parent | Update boost external (diff) | |
| download | yuzu-7725256f649719dcce2c50ea84e79d6199dd9a50.tar.gz yuzu-7725256f649719dcce2c50ea84e79d6199dd9a50.tar.xz yuzu-7725256f649719dcce2c50ea84e79d6199dd9a50.zip | |
Explicitly instantiate constructors/destructors for Kernel objects
This should speed up compile times a bit, as well as enable more liberal
use of forward declarations. (Due to SharedPtr not trying to emit the
destructor anymore.)
Diffstat (limited to 'src/core/hle/kernel/mutex.cpp')
| -rw-r--r-- | src/core/hle/kernel/mutex.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/kernel/mutex.cpp b/src/core/hle/kernel/mutex.cpp index 6fdcc97ee..c6ad5ca91 100644 --- a/src/core/hle/kernel/mutex.cpp +++ b/src/core/hle/kernel/mutex.cpp | |||
| @@ -38,6 +38,9 @@ void ReleaseThreadMutexes(Thread* thread) { | |||
| 38 | thread->held_mutexes.clear(); | 38 | thread->held_mutexes.clear(); |
| 39 | } | 39 | } |
| 40 | 40 | ||
| 41 | Mutex::Mutex() {} | ||
| 42 | Mutex::~Mutex() {} | ||
| 43 | |||
| 41 | ResultVal<SharedPtr<Mutex>> Mutex::Create(bool initial_locked, std::string name) { | 44 | ResultVal<SharedPtr<Mutex>> Mutex::Create(bool initial_locked, std::string name) { |
| 42 | SharedPtr<Mutex> mutex(new Mutex); | 45 | SharedPtr<Mutex> mutex(new Mutex); |
| 43 | // TOOD(yuriks): Don't create Handle (see Thread::Create()) | 46 | // TOOD(yuriks): Don't create Handle (see Thread::Create()) |