New AddThread() method.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31082 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -73,6 +73,15 @@ Team::AddThread(const thread_info& threadInfo, Thread** _thread)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
status_t
|
||||||
|
Team::AddThread(thread_id threadID, Thread** _thread)
|
||||||
|
{
|
||||||
|
thread_info threadInfo;
|
||||||
|
status_t error = get_thread_info(threadID, &threadInfo);
|
||||||
|
return error == B_OK ? AddThread(threadInfo, _thread) : error;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
Team::RemoveThread(Thread* thread)
|
Team::RemoveThread(Thread* thread)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ public:
|
|||||||
void AddThread(Thread* thread);
|
void AddThread(Thread* thread);
|
||||||
status_t AddThread(const thread_info& threadInfo,
|
status_t AddThread(const thread_info& threadInfo,
|
||||||
Thread** _thread = NULL);
|
Thread** _thread = NULL);
|
||||||
|
status_t AddThread(thread_id threadID,
|
||||||
|
Thread** _thread = NULL);
|
||||||
void RemoveThread(Thread* thread);
|
void RemoveThread(Thread* thread);
|
||||||
bool RemoveThread(thread_id threadID);
|
bool RemoveThread(thread_id threadID);
|
||||||
Thread* ThreadByID(thread_id threadID) const;
|
Thread* ThreadByID(thread_id threadID) const;
|
||||||
|
|||||||
Reference in New Issue
Block a user