* Cleanup, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33580 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -123,8 +123,7 @@ static void thread_kthread_entry(void);
|
|||||||
static void thread_kthread_exit(void);
|
static void thread_kthread_exit(void);
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*! Inserts a thread into a team.
|
||||||
Inserts a thread into a team.
|
|
||||||
You must hold the team lock when you call this function.
|
You must hold the team lock when you call this function.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
@@ -142,8 +141,7 @@ insert_thread_into_team(struct team *team, struct thread *thread)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*! Removes a thread from a team.
|
||||||
Removes a thread from a team.
|
|
||||||
You must hold the team lock when you call this function.
|
You must hold the team lock when you call this function.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
@@ -204,8 +202,7 @@ reset_signals(struct thread *thread)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*! Allocates and fills in thread structure (or reuses one from the
|
||||||
Allocates and fills in thread structure (or reuses one from the
|
|
||||||
dead queue).
|
dead queue).
|
||||||
|
|
||||||
\param threadID The ID to be assigned to the new thread. If
|
\param threadID The ID to be assigned to the new thread. If
|
||||||
@@ -368,8 +365,7 @@ thread_kthread_exit(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*! Initializes the thread and jumps to its userspace entry point.
|
||||||
Initializes the thread and jumps to its userspace entry point.
|
|
||||||
This function is called at creation time of every user thread,
|
This function is called at creation time of every user thread,
|
||||||
but not for a team's main thread.
|
but not for a team's main thread.
|
||||||
*/
|
*/
|
||||||
@@ -399,8 +395,7 @@ _create_kernel_thread_kentry(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*! Creates a new thread in the team with the specified team ID.
|
||||||
Creates a new thread in the team with the specified team ID.
|
|
||||||
|
|
||||||
\param threadID The ID to be assigned to the new thread. If
|
\param threadID The ID to be assigned to the new thread. If
|
||||||
\code < 0 \endcode a fresh one is allocated.
|
\code < 0 \endcode a fresh one is allocated.
|
||||||
@@ -650,8 +645,7 @@ get_thread_wait_sem(struct thread* thread)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*! Fills the thread_info structure with information from the specified
|
||||||
Fills the thread_info structure with information from the specified
|
|
||||||
thread.
|
thread.
|
||||||
The thread lock must be held when called.
|
The thread lock must be held when called.
|
||||||
*/
|
*/
|
||||||
@@ -695,9 +689,10 @@ fill_thread_info(struct thread *thread, thread_info *info, size_t size)
|
|||||||
info->sem = get_thread_wait_sem(thread);
|
info->sem = get_thread_wait_sem(thread);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static status_t
|
static status_t
|
||||||
send_data_etc(thread_id id, int32 code, const void *buffer,
|
send_data_etc(thread_id id, int32 code, const void *buffer, size_t bufferSize,
|
||||||
size_t bufferSize, int32 flags)
|
int32 flags)
|
||||||
{
|
{
|
||||||
struct thread *target;
|
struct thread *target;
|
||||||
sem_id cachedSem;
|
sem_id cachedSem;
|
||||||
@@ -1650,8 +1645,7 @@ thread_get_thread_struct_locked(thread_id id)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*! Called in the interrupt handler code when a thread enters
|
||||||
Called in the interrupt handler code when a thread enters
|
|
||||||
the kernel for any reason.
|
the kernel for any reason.
|
||||||
Only tracks time for now.
|
Only tracks time for now.
|
||||||
Interrupts are disabled.
|
Interrupts are disabled.
|
||||||
@@ -1671,8 +1665,7 @@ thread_at_kernel_entry(bigtime_t now)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*! Called whenever a thread exits kernel space to user space.
|
||||||
Called whenever a thread exits kernel space to user space.
|
|
||||||
Tracks time, handles signals, ...
|
Tracks time, handles signals, ...
|
||||||
Interrupts must be enabled. When the function returns, interrupts will be
|
Interrupts must be enabled. When the function returns, interrupts will be
|
||||||
disabled.
|
disabled.
|
||||||
@@ -1866,8 +1859,7 @@ thread_yield(bool force)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*! Kernel private thread creation function.
|
||||||
Kernel private thread creation function.
|
|
||||||
|
|
||||||
\param threadID The ID to be assigned to the new thread. If
|
\param threadID The ID to be assigned to the new thread. If
|
||||||
\code < 0 \endcode a fresh one is allocated.
|
\code < 0 \endcode a fresh one is allocated.
|
||||||
@@ -2649,8 +2641,7 @@ snooze(bigtime_t timeout)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*! snooze_until() for internal kernel use only; doesn't interrupt on
|
||||||
snooze_until() for internal kernel use only; doesn't interrupt on
|
|
||||||
signals.
|
signals.
|
||||||
*/
|
*/
|
||||||
status_t
|
status_t
|
||||||
|
|||||||
Reference in New Issue
Block a user