diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-04-14 14:18:34 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-04-14 14:18:34 +0000 |
commit | 9f559f8c435a6ebc136f56523d1f5ecf27e30294 (patch) | |
tree | 39e7bfd6dfc9bb4cc5e65271ff2231b5b47eea2e /ace | |
parent | 54a307fdfe133a0b4a94a676cb4c5ce3871270f6 (diff) | |
download | ATCD-9f559f8c435a6ebc136f56523d1f5ecf27e30294.tar.gz |
(ACE_Thread_Adapter::invoke): only declare local thr_desc if
ACE_HAS_WIN32 and ACE_HAS_MFC
Diffstat (limited to 'ace')
-rw-r--r-- | ace/OS.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ace/OS.cpp b/ace/OS.cpp index 2871d7dac32..a6155fc9feb 100644 --- a/ace/OS.cpp +++ b/ace/OS.cpp @@ -1712,7 +1712,9 @@ ACE_Thread_Adapter::invoke (void) // Extract the arguments. ACE_THR_FUNC func = this->user_func_; void *arg = this->arg_; +# if defined (ACE_WIN32) && defined (ACE_HAS_MFC) && (ACE_HAS_MFC != 0) ACE_Thread_Descriptor *thr_desc = this->thr_desc_; +# endif /* ACE_WIN32 && ACE_HAS_MFC && (ACE_HAS_MFC != 0) */ // Delete ourselves since we don't need <this> anymore. Make sure // not to access <this> anywhere below this point. @@ -1720,15 +1722,15 @@ ACE_Thread_Adapter::invoke (void) void *status = 0; - ACE_SEH_TRY + ACE_SEH_TRY { - ACE_SEH_TRY + ACE_SEH_TRY { // Call thread entry point. - status = (void*) (*func) (arg); + status = (void*) (*func) (arg); } - ACE_SEH_FINALLY + ACE_SEH_FINALLY { // Call the <Task->close> hook. if (func == (ACE_THR_FUNC) ACE_Task_Base::svc_run) @@ -1792,7 +1794,7 @@ ACE_Thread_Adapter::invoke (void) } } #if defined (ACE_WIN32) - ACE_SEH_EXCEPT (this->rethrow_w32_structural_exception ()) + ACE_SEH_EXCEPT (this->rethrow_w32_structural_exception ()) { // Here's where we might want to provide a hook to report // this... As it stands now, we just rethrow all Win32 |