diff options
Diffstat (limited to 'ace/Thread_Manager.h')
-rw-r--r-- | ace/Thread_Manager.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/ace/Thread_Manager.h b/ace/Thread_Manager.h index 547fa0285b1..74595235013 100644 --- a/ace/Thread_Manager.h +++ b/ace/Thread_Manager.h @@ -286,10 +286,14 @@ private: ACE_Task_Base *task = 0); // Create a new thread (must be called with locks held). - int find (ACE_thread_t t_id); + int find_thread (ACE_thread_t t_id); // Locate the index of the table slot occupied by <t_id>. Returns // -1 if <t_id> is not in the table doesn't contain <t_id>. + int find_hthread (ACE_hthread_t h_id); + // Locate the index of the table slot occupied by <h_id>. Returns + // -1 if <h_id> is not in the table doesn't contain <h_id>. + int find_task (ACE_Task_Base *task, int index = -1); // Locate the index of the table slot occupied by <task>. Returns // -1 if <task> is not in the table doesn't contain <task>. @@ -307,18 +311,6 @@ private: void remove_thr (int i); // Remove thread from the table. - int thread_descriptor_i (ACE_thread_t, ACE_Thread_Descriptor &); - // Implements the lookup function for the <thread_descriptor>. Note - // that this version assumes that the lock is held. We need this to - // avoid intra-class method deadlock on systems that lack recursive - // mutexes. - - int hthread_descriptor_i (ACE_hthread_t, ACE_Thread_Descriptor &); - // Implements the lookup function for the <hthread_descriptor>. - // Note that this version assumes that the lock is held. We need - // this to avoid intra-class method deadlock on systems that lack - // recursive mutexes. - // = The following four methods implement a simple scheme for operating on a collection of threads atomically. typedef int (ACE_Thread_Manager::*THR_FUNC)(int, int); |