diff options
| author | 2019-06-05 15:08:01 -0400 | |
|---|---|---|
| committer | 2019-07-03 20:31:40 -0400 | |
| commit | e23110bd9fce557ee9ad8542866bc552eda8713f (patch) | |
| tree | c15cd14fa440ca6b54ab673d848a27444c1c91fb /src | |
| parent | kernel/process: Decouple TLS handling from threads (diff) | |
| download | yuzu-e23110bd9fce557ee9ad8542866bc552eda8713f.tar.gz yuzu-e23110bd9fce557ee9ad8542866bc552eda8713f.tar.xz yuzu-e23110bd9fce557ee9ad8542866bc552eda8713f.zip | |
kernel/process: Default initialize all member variables
Ensures a Process instance is always created with a deterministic
initial state.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/kernel/process.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h index 39b098e9b..83ea02bee 100644 --- a/src/core/hle/kernel/process.h +++ b/src/core/hle/kernel/process.h | |||
| @@ -290,7 +290,7 @@ private: | |||
| 290 | u64 code_memory_size = 0; | 290 | u64 code_memory_size = 0; |
| 291 | 291 | ||
| 292 | /// Current status of the process | 292 | /// Current status of the process |
| 293 | ProcessStatus status; | 293 | ProcessStatus status{}; |
| 294 | 294 | ||
| 295 | /// The ID of this process | 295 | /// The ID of this process |
| 296 | u64 process_id = 0; | 296 | u64 process_id = 0; |
| @@ -339,7 +339,7 @@ private: | |||
| 339 | Mutex mutex; | 339 | Mutex mutex; |
| 340 | 340 | ||
| 341 | /// Random values for svcGetInfo RandomEntropy | 341 | /// Random values for svcGetInfo RandomEntropy |
| 342 | std::array<u64, RANDOM_ENTROPY_SIZE> random_entropy; | 342 | std::array<u64, RANDOM_ENTROPY_SIZE> random_entropy{}; |
| 343 | 343 | ||
| 344 | /// List of threads that are running with this process as their owner. | 344 | /// List of threads that are running with this process as their owner. |
| 345 | std::list<const Thread*> thread_list; | 345 | std::list<const Thread*> thread_list; |