[Ace-users] Re: [ace-bugs] Setting the stack size of thread has no
shuston at riverace.com
Wed Jun 20 10:43:22 CDT 2007
Thanks very much for the PROBLEM-REPORT-FORM!
If you can send a tested patch against the current SVN HEAD, I'll
integrate it before ACE 5.6.
Steve Huston, Riverace Corporation
Would you like ACE to run great on your platform?
From: ace-bugs-bounces at cse.wustl.edu
[mailto:ace-bugs-bounces at cse.wustl.edu] On Behalf Of Ehrnberg Ariel
Sent: Wednesday, June 20, 2007 12:32 PM
To: ace-bugs at cs.wustl.edu
Subject: [ace-bugs] Setting the stack size of thread has no effect
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:
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
The solution is to add the other flag to the mask.
The message may contain privileged or commercially sensitive
If you are not the intended recipient you are hereby notified that any
distribution or copying of this communication is strictly prohibited,
and you are requested to delete the e-mail and any attachments
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ace-users