Googles appar
Huvudmeny

Post a Comment On: cbloom rants

"07-14-11 - Some obscure threading APIs"

4 Comments -

1 – 4 of 4
Blogger ryg said...

"it's in NTDLL since Win XP, so despite being internal-only it's actually more usable than the Win2k+ or Vista+ stuff"
What's wrong with Win2k+ stuff? Win2k < XP. The only Win versions you lose with Win2k+ are NT <=4.0 (who gives a damn?) and 95/98/ME (which can't even use more than 160MB physical memory!)

July 14, 2011 at 8:27 PM

Blogger cbloom said...

Oh yeah you're right, I brain-farted and swapped XP/ME.

Anything 2k+ is probably fine
XP+ is fine

It's only the Vista+ stuff that's problematic.

It confuses me too much to try to think about targetting each windows so I have to stick my simplification of

32-bit pre-Vista
64-bit post-Vista

I'll revise...

July 14, 2011 at 8:45 PM

Blogger Anthony Williams said...

You've got the futex the wrong way round: it is equivalent to:

atomically {
if ( *address != check_value ) return;
else Wait();
}

i.e. it only waits if the value hasn't changed.

July 15, 2011 at 9:40 AM

Blogger cbloom said...

Oops, thanks, fixed!

July 15, 2011 at 10:21 AM

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.