Removed unused functions suspend/remove_all_threads.
This commit is contained in:
parent
e9782fa1fc
commit
10109e6083
|
@ -287,24 +287,6 @@ int resume_thread( struct thread *thread )
|
||||||
return old_count;
|
return old_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* suspend all threads but the current */
|
|
||||||
void suspend_all_threads( void )
|
|
||||||
{
|
|
||||||
struct thread *thread;
|
|
||||||
for ( thread = first_thread; thread; thread = thread->next )
|
|
||||||
if ( thread != current )
|
|
||||||
suspend_thread( thread, 0 );
|
|
||||||
}
|
|
||||||
|
|
||||||
/* resume all threads but the current */
|
|
||||||
void resume_all_threads( void )
|
|
||||||
{
|
|
||||||
struct thread *thread;
|
|
||||||
for ( thread = first_thread; thread; thread = thread->next )
|
|
||||||
if ( thread != current )
|
|
||||||
resume_thread( thread );
|
|
||||||
}
|
|
||||||
|
|
||||||
/* add a thread to an object wait queue; return 1 if OK, 0 on error */
|
/* add a thread to an object wait queue; return 1 if OK, 0 on error */
|
||||||
int add_queue( struct object *obj, struct wait_queue_entry *entry )
|
int add_queue( struct object *obj, struct wait_queue_entry *entry )
|
||||||
{
|
{
|
||||||
|
|
|
@ -94,8 +94,6 @@ extern struct thread *get_thread_from_handle( handle_t handle, unsigned int acce
|
||||||
extern struct thread *get_thread_from_pid( int pid );
|
extern struct thread *get_thread_from_pid( int pid );
|
||||||
extern int suspend_thread( struct thread *thread, int check_limit );
|
extern int suspend_thread( struct thread *thread, int check_limit );
|
||||||
extern int resume_thread( struct thread *thread );
|
extern int resume_thread( struct thread *thread );
|
||||||
extern void suspend_all_threads( void );
|
|
||||||
extern void resume_all_threads( void );
|
|
||||||
extern int add_queue( struct object *obj, struct wait_queue_entry *entry );
|
extern int add_queue( struct object *obj, struct wait_queue_entry *entry );
|
||||||
extern void remove_queue( struct object *obj, struct wait_queue_entry *entry );
|
extern void remove_queue( struct object *obj, struct wait_queue_entry *entry );
|
||||||
extern void kill_thread( struct thread *thread, int violent_death );
|
extern void kill_thread( struct thread *thread, int violent_death );
|
||||||
|
|
Loading…
Reference in New Issue