summaryrefslogtreecommitdiff
path: root/ace/Thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Thread.cpp')
-rw-r--r--ace/Thread.cpp28
1 files changed, 15 insertions, 13 deletions
diff --git a/ace/Thread.cpp b/ace/Thread.cpp
index fab00ea5e6b..c9398465240 100644
--- a/ace/Thread.cpp
+++ b/ace/Thread.cpp
@@ -26,22 +26,24 @@ ACE_Thread::spawn_n (size_t n,
const char* thr_name[])
{
ACE_TRACE ("ACE_Thread::spawn_n");
- ACE_thread_t t_id;
size_t i;
for (i = 0; i < n; i++)
- // Bail out if error occurs.
- if (ACE_OS::thr_create (func,
- arg,
- flags,
- &t_id,
- 0,
- priority,
- stack == 0 ? 0 : stack[i],
- stack_size == 0 ? ACE_DEFAULT_THREAD_STACKSIZE : stack_size[i],
- thread_adapter,
- thr_name == 0 ? 0 : &thr_name[i]) != 0)
- break;
+ {
+ ACE_thread_t t_id;
+ // Bail out if error occurs.
+ if (ACE_OS::thr_create (func,
+ arg,
+ flags,
+ &t_id,
+ 0,
+ priority,
+ stack == 0 ? 0 : stack[i],
+ stack_size == 0 ? ACE_DEFAULT_THREAD_STACKSIZE : stack_size[i],
+ thread_adapter,
+ thr_name == 0 ? 0 : &thr_name[i]) != 0)
+ break;
+ }
return i;
}