diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-02-10 16:00:35 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-02-10 16:00:35 +0000 |
commit | 9c50b291a88efdac7c1d2a90f440847ff4e58441 (patch) | |
tree | 62646f72deebc0fcec865ebc489ae5f294e211ec /ace | |
parent | 5e94ef0079696772b6ead881e8a83c37f2a35f3d (diff) | |
download | ATCD-9c50b291a88efdac7c1d2a90f440847ff4e58441.tar.gz |
(activate): added stack and stack_size parameters
Diffstat (limited to 'ace')
-rw-r--r-- | ace/Timer_Queue_Adapters.h | 35 | ||||
-rw-r--r-- | ace/Timer_Queue_Adapters.i | 18 |
2 files changed, 28 insertions, 25 deletions
diff --git a/ace/Timer_Queue_Adapters.h b/ace/Timer_Queue_Adapters.h index 836ebe307bb..3716ea5c257 100644 --- a/ace/Timer_Queue_Adapters.h +++ b/ace/Timer_Queue_Adapters.h @@ -1,18 +1,17 @@ // -*- C++ -*- - // $Id$ // ============================================================================ // // = LIBRARY // ace -// +// // = FILENAME // Timer_Queue_Adapters.h // // = AUTHOR // Douglas C. Schmidt and Carlos O'Ryan -// +// // ============================================================================ #if !defined (ACE_TIMER_QUEUE_ADAPTERS_H) @@ -39,9 +38,9 @@ public: // indicated in <mask>. long schedule (ACE_Event_Handler *type, - const void *act, - const ACE_Time_Value &delay, - const ACE_Time_Value &interval = ACE_Time_Value::zero); + const void *act, + const ACE_Time_Value &delay, + const ACE_Time_Value &interval = ACE_Time_Value::zero); // Schedule the timer according to the semantics of the // <ACE_Timer_List>. However, this timer gets dispatched via a // signal, rather than by a user calling <expire>. @@ -96,12 +95,12 @@ public: ACE_Thread_Timer_Queue_Adapter (ACE_Thread_Manager * = ACE_Thread_Manager::instance ()); // Creates the timer queue. Activation of the task is the user's - // responsibility. + // responsibility. long schedule (ACE_Event_Handler* handler, - const void *act, - const ACE_Time_Value &delay, - const ACE_Time_Value &interval = ACE_Time_Value::zero); + const void *act, + const ACE_Time_Value &delay, + const ACE_Time_Value &interval = ACE_Time_Value::zero); // Schedule the timer according to the semantics of the <TQ>; wakes // up the dispatching thread. @@ -124,13 +123,15 @@ public: ACE_thread_t thr_id (void); // Return the thread id of our active object. - virtual int activate (long flags = THR_NEW_LWP, - int n_threads = 1, - int force_active = 0, - long priority = ACE_DEFAULT_THREAD_PRIORITY, - int grp_id = -1, - ACE_Task_Base *task = 0, - ACE_hthread_t thread_handles[] = 0); + virtual int activate (long flags = THR_NEW_LWP, + int n_threads = 1, + int force_active = 0, + long priority = ACE_DEFAULT_THREAD_PRIORITY, + int grp_id = -1, + ACE_Task_Base *task = 0, + ACE_hthread_t thread_handles[] = 0, + void *stack[] = 0, + size_t stack_size[] = 0); // We override the default <activate> method so that we can ensure // that only a single thread is ever spawned. Otherwise, too many // weird things can happen... diff --git a/ace/Timer_Queue_Adapters.i b/ace/Timer_Queue_Adapters.i index c7060fd53ba..1d3ff438db8 100644 --- a/ace/Timer_Queue_Adapters.i +++ b/ace/Timer_Queue_Adapters.i @@ -1,5 +1,4 @@ /* -*- C++ -*- */ - // $Id$ template<class TQ> ACE_INLINE TQ & @@ -16,12 +15,14 @@ ACE_Thread_Timer_Queue_Adapter<TQ>::thr_id (void) template<class TQ> ACE_INLINE int ACE_Thread_Timer_Queue_Adapter<TQ>::activate (long flags, - int n_threads, - int force_active, - long priority, - int grp_id, - ACE_Task_Base *task, - ACE_hthread_t thread_handles[]) + int n_threads, + int force_active, + long priority, + int grp_id, + ACE_Task_Base *task, + ACE_hthread_t thread_handles[], + void *stack[], + size_t stack_size[]) { // Macros to avoid "warning: unused parameter" type warning. ACE_UNUSED_ARG (n_threads); @@ -30,5 +31,6 @@ ACE_Thread_Timer_Queue_Adapter<TQ>::activate (long flags, // Make sure that we only allow a single thread to be spawned for // our adapter. Otherwise, too many weird things can happen. - return ACE_Task_Base::activate (flags, 1, 0, priority, grp_id, task, 0); + return ACE_Task_Base::activate (flags, 1, 0, priority, grp_id, task, 0, + stack, stack_size); } |