diff options
| author | 2019-04-17 21:46:46 -0400 | |
|---|---|---|
| committer | 2019-04-17 21:46:46 -0400 | |
| commit | 83b830eb2f80de8073a7304ab6270621d062d0b2 (patch) | |
| tree | 40c965879105facd5deb0c65262d993ddbf6c30f /src/core/hle/kernel/thread.h | |
| parent | Merge pull request #2318 from ReinUsesLisp/sampler-cache (diff) | |
| parent | svc: Specify handle value in thread's name (diff) | |
| download | yuzu-83b830eb2f80de8073a7304ab6270621d062d0b2.tar.gz yuzu-83b830eb2f80de8073a7304ab6270621d062d0b2.tar.xz yuzu-83b830eb2f80de8073a7304ab6270621d062d0b2.zip | |
Merge pull request #2397 from lioncash/thread-unused
kernel/thread: Remove unused guest_handle member variable
Diffstat (limited to 'src/core/hle/kernel/thread.h')
| -rw-r--r-- | src/core/hle/kernel/thread.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index 32026d7f0..411a73b49 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h | |||
| @@ -102,6 +102,11 @@ public: | |||
| 102 | std::string GetName() const override { | 102 | std::string GetName() const override { |
| 103 | return name; | 103 | return name; |
| 104 | } | 104 | } |
| 105 | |||
| 106 | void SetName(std::string new_name) { | ||
| 107 | name = std::move(new_name); | ||
| 108 | } | ||
| 109 | |||
| 105 | std::string GetTypeName() const override { | 110 | std::string GetTypeName() const override { |
| 106 | return "Thread"; | 111 | return "Thread"; |
| 107 | } | 112 | } |
| @@ -339,10 +344,6 @@ public: | |||
| 339 | arb_wait_address = address; | 344 | arb_wait_address = address; |
| 340 | } | 345 | } |
| 341 | 346 | ||
| 342 | void SetGuestHandle(Handle handle) { | ||
| 343 | guest_handle = handle; | ||
| 344 | } | ||
| 345 | |||
| 346 | bool HasWakeupCallback() const { | 347 | bool HasWakeupCallback() const { |
| 347 | return wakeup_callback != nullptr; | 348 | return wakeup_callback != nullptr; |
| 348 | } | 349 | } |
| @@ -436,9 +437,6 @@ private: | |||
| 436 | /// If waiting for an AddressArbiter, this is the address being waited on. | 437 | /// If waiting for an AddressArbiter, this is the address being waited on. |
| 437 | VAddr arb_wait_address{0}; | 438 | VAddr arb_wait_address{0}; |
| 438 | 439 | ||
| 439 | /// Handle used by guest emulated application to access this thread | ||
| 440 | Handle guest_handle = 0; | ||
| 441 | |||
| 442 | /// Handle used as userdata to reference this object when inserting into the CoreTiming queue. | 440 | /// Handle used as userdata to reference this object when inserting into the CoreTiming queue. |
| 443 | Handle callback_handle = 0; | 441 | Handle callback_handle = 0; |
| 444 | 442 | ||