diff options
author | Steve Huston <shuston@riverace.com> | 2015-02-12 10:46:08 -0500 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2015-02-12 10:46:08 -0500 |
commit | 5b192d1a85d54740d45211f9cc05b2442b1e1def (patch) | |
tree | cff96e94eee996dd9da4185d090f985d9ce39dca /ACE/ace/OS_NS_Thread.cpp | |
parent | a16e1f2296eb85eed6da71b009d72223e0438a74 (diff) | |
download | ATCD-5b192d1a85d54740d45211f9cc05b2442b1e1def.tar.gz |
spa() can pass a function name ("ace_main") plus the normal 10 optional arguments.
Diffstat (limited to 'ACE/ace/OS_NS_Thread.cpp')
-rw-r--r-- | ACE/ace/OS_NS_Thread.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ACE/ace/OS_NS_Thread.cpp b/ACE/ace/OS_NS_Thread.cpp index 2d2b4cae797..598fa0f0762 100644 --- a/ACE/ace/OS_NS_Thread.cpp +++ b/ACE/ace/OS_NS_Thread.cpp @@ -5132,7 +5132,9 @@ ACE_END_VERSIONED_NAMESPACE_DECL int spa (FUNCPTR entry, ...) { - static _Vx_usr_arg_t const ACE_MAX_ARGS = 10; + // The called entrypoint can get the function name plus the normal 10 + // optional arguments. + static _Vx_usr_arg_t const ACE_MAX_ARGS = 1 + 10; static char *argv[ACE_MAX_ARGS] = { 0 }; va_list pvar; _Vx_usr_arg_t argc; |