git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31143 a95241bf-73f2-0310-859d-f6bbb57e9c96
43 lines
592 B
C++
43 lines
592 B
C++
/*
|
|
* Copyright 2009, Ingo Weinhold, [email protected].
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
|
|
#include "ThreadInfo.h"
|
|
|
|
|
|
ThreadInfo::ThreadInfo()
|
|
:
|
|
fTeam(-1),
|
|
fThread(-1),
|
|
fName()
|
|
{
|
|
}
|
|
|
|
|
|
ThreadInfo::ThreadInfo(const ThreadInfo& other)
|
|
:
|
|
fTeam(other.fTeam),
|
|
fThread(other.fThread),
|
|
fName(other.fName)
|
|
{
|
|
}
|
|
|
|
|
|
ThreadInfo::ThreadInfo(team_id team, thread_id thread, const BString& name)
|
|
:
|
|
fTeam(team),
|
|
fThread(thread),
|
|
fName(name)
|
|
{
|
|
}
|
|
|
|
|
|
void
|
|
ThreadInfo::SetTo(team_id team, thread_id thread, const BString& name)
|
|
{
|
|
fTeam = team;
|
|
fThread = thread;
|
|
fName = name;
|
|
}
|