vfs: check userland buffers before reading them.
[haiku.git] / headers / private / debugger / model / ThreadInfo.h
blobd88dabc33ce89b126c8b649105461e3b112b04d1
1 /*
2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef THREAD_INFO_H
6 #define THREAD_INFO_H
8 #include <OS.h>
9 #include <String.h>
12 class ThreadInfo {
13 public:
14 ThreadInfo();
15 ThreadInfo(const ThreadInfo& other);
16 ThreadInfo(team_id team, thread_id thread,
17 const BString& name);
19 void SetTo(team_id team, thread_id thread,
20 const BString& name);
22 team_id TeamID() const { return fTeam; }
23 thread_id ThreadID() const { return fThread; }
24 const char* Name() const { return fName.String(); }
26 private:
27 team_id fTeam;
28 thread_id fThread;
29 BString fName;
33 #endif // THREAD_INFO_H