Return dummy values for unimplemented threading functions
This commit is contained in:
parent
d938b9b3bc
commit
3bc5d90662
|
@ -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
|
// TODO(dougvj) We can probably wrap this with pthread_key_t but the type of
|
||||||
// TlsHandle probably needs to be refactored
|
// TlsHandle probably needs to be refactored
|
||||||
TlsHandle AllocateTlsHandle() { assert_always(); }
|
TlsHandle AllocateTlsHandle() {
|
||||||
|
assert_always();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
bool FreeTlsHandle(TlsHandle handle) { return true; }
|
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)
|
// TODO(dougvj)
|
||||||
class PosixHighResolutionTimer : public HighResolutionTimer {
|
class PosixHighResolutionTimer : public HighResolutionTimer {
|
||||||
|
|
Loading…
Reference in New Issue