summaryrefslogtreecommitdiff
path: root/src/components/utils/include/utils/threads/thread_validator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/utils/include/utils/threads/thread_validator.h')
-rw-r--r--src/components/utils/include/utils/threads/thread_validator.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/components/utils/include/utils/threads/thread_validator.h b/src/components/utils/include/utils/threads/thread_validator.h
index 97611657d3..49df711918 100644
--- a/src/components/utils/include/utils/threads/thread_validator.h
+++ b/src/components/utils/include/utils/threads/thread_validator.h
@@ -67,10 +67,10 @@ class SingleThreadSimpleValidator {
// This method should be called in every public method
// of classes being checked for absence of concurrent access
void AssertRunningOnCreationThread() const;
- PlatformThreadHandle creation_thread_id() const;
+ uint64_t creation_thread_id() const;
private:
- const PlatformThreadHandle creation_thread_id_;
+ const uint64_t creation_thread_id_;
};
/*
@@ -92,14 +92,14 @@ class SingleThreadValidator {
// Must be called prior to transferring object being validated to
// another thread or when passing it back
- void PassToThread(PlatformThreadHandle thread_id) const;
+ void PassToThread(uint64_t thread_id) const;
// This method should be called in every public method
// of classes being checked for absence of unintended concurrent
// access
void AssertRunningOnValidThread() const;
private:
- mutable PlatformThreadHandle owning_thread_id_;
+ mutable uint64_t owning_thread_id_;
};
} // namespace threads