[Ace-users] Re: [ace-bugs] Setting the stack size of thread has no effect underWINCE

Steve Huston shuston at riverace.com
Wed Jun 20 10:43:22 CDT 2007


Hi Ariel,
 
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

--
Steve Huston, Riverace Corporation
Would you like ACE to run great on your platform?
See http://www.riverace.com/sponsor.htm


-----Original Message-----
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
underWINCE



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


 


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/ace-users/attachments/20070620/13ac3c59/attachment.htm


More information about the Ace-users mailing list