diff options
| author | DrChat <arkolbed@gmail.com> | 2017-12-16 17:02:06 -0600 |
|---|---|---|
| committer | DrChat <arkolbed@gmail.com> | 2017-12-16 17:02:06 -0600 |
| commit | 3bc5d9066260d283da4d826e195c7a296676f466 (patch) | |
| tree | 89b29a3d06732e3c4d70c501684a63d8daaeb185 | |
| parent | d938b9b3bcfd33ad98521e8298b1e4a1e0f8a31b (diff) | |
Return dummy values for unimplemented threading functions
| -rw-r--r-- | src/xenia/base/threading_posix.cc | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/xenia/base/threading_posix.cc b/src/xenia/base/threading_posix.cc index c8d6f6654..7570a824a 100644 --- a/src/xenia/base/threading_posix.cc +++ b/src/xenia/base/threading_posix.cc @@ -61,13 +61,22 @@ SleepResult AlertableSleep(std::chrono::microseconds duration) { // TODO(dougvj) We can probably wrap this with pthread_key_t but the type of // TlsHandle probably needs to be refactored -TlsHandle AllocateTlsHandle() { assert_always(); } +TlsHandle AllocateTlsHandle() { + assert_always(); + return 0; +} bool FreeTlsHandle(TlsHandle handle) { return true; } -uintptr_t GetTlsValue(TlsHandle handle) { assert_always(); } +uintptr_t GetTlsValue(TlsHandle handle) { + assert_always(); + return 0; +} -bool SetTlsValue(TlsHandle handle, uintptr_t value) { assert_always(); } +bool SetTlsValue(TlsHandle handle, uintptr_t value) { + assert_always(); + return false; +} // TODO(dougvj) class PosixHighResolutionTimer : public HighResolutionTimer { |
