xref: /haiku/src/kits/debugger/model/ThreadInfo.cpp (revision fce4895d1884da5ae6fb299d23c735c598e690b1)
1 /*
2  * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 #include "ThreadInfo.h"
7 
8 
ThreadInfo()9 ThreadInfo::ThreadInfo()
10 	:
11 	fTeam(-1),
12 	fThread(-1),
13 	fName()
14 {
15 }
16 
17 
ThreadInfo(const ThreadInfo & other)18 ThreadInfo::ThreadInfo(const ThreadInfo& other)
19 	:
20 	fTeam(other.fTeam),
21 	fThread(other.fThread),
22 	fName(other.fName)
23 {
24 }
25 
26 
ThreadInfo(team_id team,thread_id thread,const BString & name)27 ThreadInfo::ThreadInfo(team_id team, thread_id thread, const BString& name)
28 	:
29 	fTeam(team),
30 	fThread(thread),
31 	fName(name)
32 {
33 }
34 
35 
36 void
SetTo(team_id team,thread_id thread,const BString & name)37 ThreadInfo::SetTo(team_id team, thread_id thread, const BString& name)
38 {
39 	fTeam = team;
40 	fThread = thread;
41 	fName = name;
42 }
43