[Ace-users] [ace-bugs] Setting the stack size of thread has no
effect under WINCE
Ehrnberg Ariel
ariele at elbit.co.il
Wed Jun 20 11:31:30 CDT 2007
ACE VERSION: 5.5
HOST MACHINE and OPERATING SYSTEM:x86 Win2K
TARGET MACHINE and OPERATING SYSTEM, if different from HOST: PPC 2003 -
wince 4.2
COMPILER NAME AND VERSION (AND PATCHLEVEL): vs 2005
CONTENTS OF $ACE_ROOT/ace/config.h:
#include "ace/config-win32.h"
AREA/CLASS/EXAMPLE AFFECTED: threads
DOES THE PROBLEM AFFECT:
COMPILATION? no
LINKING? no
EXECUTION? yes
OTHER (please specify)? N/A
SYNOPSIS:
Setting the stack size under WINCE has no effect.
DESCRIPTION:
The CreateThread function of wince accept stack size as the first
argument. But this parameter is ignored unless the flags parameter
contains the flag STACK_SIZE_PARAM_IS_A_RESERVATION.
The problem is that the call CreateThread in ACE (inside
ACE_BEGINTHREADEX) changes the flags like this: (FLAGS) &
CREATE_SUSPENDED. And so the stack size has no affect.
I think that the motivation behind this was to disable other flags that
WINCE does not accept (it actually accept only those two parameters).
The solution is to add the other flag to the mask.
REPEAT BY:
n/a
SAMPLE FIX/WORKAROUND:
n/a
Thanks,
Ariel
This e-mail message has been sent by Elbit Systems Ltd.
and is for the use of the intended recipients only.
The message may contain privileged or commercially sensitive information .
If you are not the intended recipient you are hereby notified that any use,
distribution or copying of this communication is strictly prohibited,
and you are requested to delete the e-mail and any attachments
and notify the sender immediately.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/ace-users/attachments/20070620/67b28dce/attachment.htm
More information about the Ace-users
mailing list