[Ace-users] [ace-bugs] Setting the stack size of thread has no
effect under WINCE
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 -
COMPILER NAME AND VERSION (AND PATCHLEVEL): vs 2005
CONTENTS OF $ACE_ROOT/ace/config.h:
AREA/CLASS/EXAMPLE AFFECTED: threads
DOES THE PROBLEM AFFECT:
OTHER (please specify)? N/A
Setting the stack size under WINCE has no effect.
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.
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...
More information about the Ace-users