[Ace-users] [ace-bugs] ACE : support all WindowsCE priorites withCeGetThreadPriority

Steve Huston shuston at riverace.com
Tue Feb 12 09:56:26 CST 2008


Hi Daniel,

This is a good idea - thank you for pointing it out. I don't believe
anyone is still supporting pre-5.0 CE, so this should be done.

Changing just the Get/SetPriority calls would be insufficient,
however, as there are other classes in ACE that deal with available
priority levels and their relationship. Could you please do one of the
following:

1. Enter this issue in Bugzilla so it doesn't get lost. If someone has
time to work on this and the integration and testing, the information
will be readily available.

2. Sponsor the correction of this feature. One way is to purchase ACE
support and then report it as broken.

Best regards,
-Steve

--
Steve Huston, Riverace Corporation
Want to take ACE training on YOUR schedule?
See http://www.riverace.com/training.htm


> -----Original Message-----
> From: ace-bugs-bounces at cse.wustl.edu 
> [mailto:ace-bugs-bounces at cse.wustl.edu] On Behalf Of Daniel Lang
> Sent: Monday, February 11, 2008 3:43 AM
> To: ace-bugs at cs.wustl.edu
> Subject: [ace-bugs] ACE : support all WindowsCE priorites 
> withCeGetThreadPriority
> 
> 
>    ACE VERSION: 5.6.2
> 
>     HOST MACHINE and OPERATING SYSTEM:
>         If on Windows based OS's, which version of WINSOCK do you
>         use?:
> Host is WindowsXP with winsock2.0 Library.
> 
>     TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
> ARM processor and WindowsCE6.0
>     COMPILER NAME AND VERSION (AND PATCHLEVEL):
> MS Visual Studio 2005 V8.0 SP.050727-7600
> 
>     THE $ACE_ROOT/ace/config.h FILE:
> #include "ace\config-win32.h"
> 
>     THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE:
> 
>     CONTENTS OF 
> $ACE_ROOT/bin/MakeProjectCreator/config/default.features
>     (used by MPC when you generate your own makefiles):
> 
>     AREA/CLASS/EXAMPLE AFFECTED:
> 
>     DOES THE PROBLEM AFFECT:
>         COMPILATION?
>         LINKING?
>             On Unix systems, did you run make realclean first?
>         EXECUTION?
>         OTHER (please specify)?
> Not all WindowsCE priorities are supported.
> 
>     SYNOPSIS:
> WindowsCE support up to 256 priority level but the implementation of
> ace/OS_NS_Thread.inl uses deprecated WindowsCE method so ACE 
> can use only
> 8 priority levels.
> 
>     DESCRIPTION:
> As you can read on 
> http://msdn2.microsoft.com/en-us/library/aa450596.aspx
> WindowsCE support 256 priority levels. But the ACE method
> ACE_OS::thr_getprio uses the legacy WindowsCE method 
> ::GetThreadPriority
> in order to retrieve the priority of current thread. So ACE 
> applications
> for WindowsCE can use 8 priority levels only. This is a big 
> problem for
> realtime based WindowsCE applications. If ACE would use
> ::CeGetThreadPriority instead of ::GetThreadPriority all 256 
> levels could
> be used.
> 
>     REPEAT BY:
> 
> 
>     SAMPLE FIX/WORKAROUND:
> 
> 
> _______________________________________________
> ace-bugs mailing list
> ace-bugs at mail.cse.wustl.edu
> http://mail.cse.wustl.edu/mailman/listinfo/ace-bugs
> 




More information about the Ace-users mailing list