From 47877cf2dbd6ee2f1cf9b2c609d37b0589e876ca Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Tue, 26 May 2009 09:23:13 -0700 Subject: types: add a type for thread IDs and try to use it everywhere --- src/base/types.hh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/base') diff --git a/src/base/types.hh b/src/base/types.hh index 6d8d3095c..1a6db9fbb 100644 --- a/src/base/types.hh +++ b/src/base/types.hh @@ -68,4 +68,10 @@ typedef uint64_t Addr; const Addr MaxAddr = (Addr)-1; +/** + * Thread index/ID type + */ +typedef int16_t ThreadID; +const ThreadID InvalidThreadID = (ThreadID)-1; + #endif // __BASE_TYPES_HH__ -- cgit v1.2.3