|
-
October 23rd, 2008, 01:34 PM
#5
Re: User-mode semaphore possible?
Ahah, yes I see how to do it. See below for an implementation of something similar, which (I cannot resist adding) I though of myself just before.
http://msdn.microsoft.com/en-us/magazine/cc163642.aspx
I was struggling to see how to use the test-and-set instruction to do more general operations (eg Interlocked.Increment() in the example).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|