2009-06-16 04:25:36 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "Thread.h"
|
|
|
|
|
|
|
|
|
2009-06-18 04:35:12 +04:00
|
|
|
Thread::Thread(Team* team, thread_id threadID)
|
2009-06-16 04:25:36 +04:00
|
|
|
:
|
2009-06-18 04:35:12 +04:00
|
|
|
fTeam(team),
|
|
|
|
fID(threadID),
|
|
|
|
fState(THREAD_STATE_UNKNOWN)
|
2009-06-16 04:25:36 +04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Thread::~Thread()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
status_t
|
|
|
|
Thread::Init()
|
|
|
|
{
|
|
|
|
return B_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
Thread::SetName(const BString& name)
|
|
|
|
{
|
|
|
|
fName = name;
|
|
|
|
}
|
2009-06-18 04:35:12 +04:00
|
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
Thread::SetState(uint32 state)
|
|
|
|
{
|
|
|
|
fState = state;
|
|
|
|
}
|