From 10109e60834845296d8f709ac8d4d403d234890c Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 12 Jul 2001 22:35:20 +0000 Subject: [PATCH] Removed unused functions suspend/remove_all_threads. --- server/thread.c | 18 ------------------ server/thread.h | 2 -- 2 files changed, 20 deletions(-) diff --git a/server/thread.c b/server/thread.c index 6d35d5ddd83..90e88aa1c4c 100644 --- a/server/thread.c +++ b/server/thread.c @@ -287,24 +287,6 @@ int resume_thread( struct thread *thread ) 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 */ int add_queue( struct object *obj, struct wait_queue_entry *entry ) { diff --git a/server/thread.h b/server/thread.h index 6f388581b7b..c0ec26df83b 100644 --- a/server/thread.h +++ b/server/thread.h @@ -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 int suspend_thread( struct thread *thread, int check_limit ); 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 void remove_queue( struct object *obj, struct wait_queue_entry *entry ); extern void kill_thread( struct thread *thread, int violent_death );