20 Feb
2010
20 Feb
'10
12:08 a.m.
On 20 February 2010 00:19, Erich Hoover <ehoover(a)mines.edu> wrote:
+ /* NOTE: Pre-Vista does not recognize the "all processors" flag (-1) */ + thread_affinity = -1; ~0UL probably makes more sense than -1 for an unsigned variable.
- const ULONG_PTR *paff = data; + ULONG_PTR req_aff = *(ULONG_PTR *)data; You shouldn't cast const away.
Is "-1" special, or does the call just always mask the requested mask with the available processors on Vista and above?