headers/bsd: Add sys/queue.h.
[haiku.git] / src / kits / debugger / model / ThreadInfo.cpp
blobc2fcfbb473414f08a8cfa697c5a7c62e3113b745
1 /*
2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
6 #include "ThreadInfo.h"
9 ThreadInfo::ThreadInfo()
11 fTeam(-1),
12 fThread(-1),
13 fName()
18 ThreadInfo::ThreadInfo(const ThreadInfo& other)
20 fTeam(other.fTeam),
21 fThread(other.fThread),
22 fName(other.fName)
27 ThreadInfo::ThreadInfo(team_id team, thread_id thread, const BString& name)
29 fTeam(team),
30 fThread(thread),
31 fName(name)
36 void
37 ThreadInfo::SetTo(team_id team, thread_id thread, const BString& name)
39 fTeam = team;
40 fThread = thread;
41 fName = name;